C Programming
Computer Programming

Program in c to Calculate the Square of a Number



Write a Program in c to Calculate the Square of a Number

\* C Program to to Calculate the Square of a Number *\

# include < stdio.h >
int   main( )
{

int   num, sqr  ;
printf(" Enter the Number : ") ;
scanf("%d ", & num) ;
sqr = num * num ;
printf(" \n Squar of Number is : ") ;
printf("%d ", sqr) ;
return ( 0 ) ;

}

Output of Program :

Output of Program in C to Calculate the Square of a Number