programming-examples/c/Functions/C Program to find square of a number using functions.c

15 lines
224 B
C
Raw Normal View History

2019-11-15 12:59:38 +01:00
#include<stdio.h>
void main()
{
int rev(int);
int r,a;
clrscr();
printf("enter any no: ");
scanf("%d",&a);
r=rev(a);
printf("square is : %d",r);
}
int rev(int x)
{
return(x*x);
}