Wednesday, 19 August 2015

Programming in C to find the square of the given number

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int y,x;
clrscr();
printf("\nEnter a number for their square");
scanf("%d",&x);
y=pow(x,2);
printf("\nSquare of the given number is %d ",y);
getch();
}

1 comment: