Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux

C program to find square of any number using function

You are here : Home » Solved Programs in C » Program to find square of any number


int func(int);

int main()
int no, square;

printf("\n Enter an no : ");

square = func(no);

printf("\n Square of no is : %d ", square);


int func(int temp)
return temp*temp;