Write a program of calculate area of square.
//Calculate Area Of Square
#include<stdio.h>
#include<conio.h>
void main()
{
int a,square;
printf("\n Enter a Value=");
scanf("%d",&a);
square=a*a;
printf("\n Area Of Square=%d",square);
//Second Method
printf("\n Area Of Square=%d",a*a);
getch();
}
0 Comments