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:
![](https://hi-static.z-dn.net/files/d98/fdc9e3d25bc1884eea7ecc9d9c88e808.png)
Similar questions
Physics,
3 months ago
Biology,
3 months ago
English,
3 months ago
English,
6 months ago
Social Sciences,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago