Write a program to input side of square to calculate perimeter and area of square.
Answers
Answered by
3
Answer:
Explanation:
Below program, first takes length of side as input from user using scanf function and stores in a floating point variable. To find the area of square we multiple the length of side with itself and store area in a floating point variable. At last, it prints the area of square on screen using printf function.
Attachments:
Similar questions
Math,
2 months ago
Math,
2 months ago
English,
2 months ago
English,
4 months ago
Social Sciences,
4 months ago
Social Sciences,
11 months ago
Math,
11 months ago