Computer Science, asked by klintonverma1, 9 months ago

Write a program to calculate area of square?

Answers

Answered by thekjazz2120
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 dheerajy30530
5

area = width × height

Area of square will be calculated as :

area = side2

since width = height;

Similar questions