Calculate the Area of the Square with C language
#include <stdio.h>
int main()
{
int x, area;
printf("\nEnter the Length of x : ");
scanf("%d", &x);
area = x * x;
printf("\nArea of Square : %d", area);
return 0;
}
Output:-
Enter the Length of x : 5
Area of Square : 25
0 Comments