recent

Program to find square of a number using functions

Write a Program to find square of a number using functions:-

#include<stdio.h>
void main()
{
int rev(int);
int r,a;

printf("enter any no: \n");
scanf("%d",&a);
r=rev(a);
printf("square is : %d",r);

}
int rev(int x)
{
return(x*x);
}
Powered by Blogger.