Computer Science, asked by anuraganand166, 4 months ago

Write a program to input side of square to calculate perimeter and area of square.​

Answers

Answered by hkk1230
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