Program to print square of a given number

#include<stdio.h>
void main()
{
int n, sq;
printf("Enter number:");
scanf("%d",&n);
sq= n*n;
printf("Square= %d", sq);
}



Post a Comment

0 Comments