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

CppBuzz.com
  
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

#include<stdio.h>

int func(int);

int main()
{
int no, square;

printf("\n Enter an no : ");
scanf("%d",&no);

square = func(no);

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

}

int func(int temp)
{
return temp*temp;
}