C program to find square using User Defined Function
#include<stdio.h>
int square(int a)
{
int square;
square=(a*a);
return square;
}
void main()
{
int x;
x=square(x)
Printf("square= %d",x);
getch();
clrscr();
}
int square(int a)
{
int square;
square=(a*a);
return square;
}
void main()
{
int x;
x=square(x)
Printf("square= %d",x);
getch();
clrscr();
}
Comments
Post a Comment