Code for Program to calculate square of a given number in C Programming
#include<stdio.h>
#include<conio.h>
void main()
{
int n,sqr=0;
clrscr();
printf("\n\t ENTER THE NO.:= ");
scanf("%d",&n);
sqr=n*n;
printf("\n\t SQUARE OF %d is %d .",n,sqr);
getch();
}
*********************** OUTPUT ***********************************************
ENTER THE NO.:= 12
SQUARE OF 12 is 144 .
*****************************************************************************