Saturday, 21 January 2012

To find Square of a no. using Function / Recursion.


#include<stdio.h>
#include<conio.h>
void main()
{
float square(float);
float n,s;
clrscr();
printf("enter a number:");

scanf("%f",&n);
s=square (n);
printf("square of a number=%f\n",s);
getch();
}
float square (float n)
{
float y;
y=n*n;
return(y);
}

For 8051 microcontroller programming :http://assemblylanguage8051.blogspot.in/



Jai Ho - HD Hindi Movie Digital Poster [2014] Salman Khan by A-Music

No comments:

Post a Comment