Write a program to calculate area of square?
Answers
Answered by
1
Answer:
Program :
int main() {
int side, area;
printf("\nEnter the Length of Side : ");
scanf("%d", &side);
area = side * side;
printf("\nArea of Square : %d", area);
return (0);
Answered by
5
area = width × height
Area of square will be calculated as :
area = side2
since width = height;
Similar questions