1. Write a program to find area and perimeter of a rectangle . Accept the length and breadth of the rectangle from the user.
please give answers according to class 10
icse syllabus
Answers
Answered by
3
Answer:
Logic to find perimeter of a rectangle
Input length and width of the rectangle using scanf() function. Store it in two variables say length and width . Calculate perimeter using formula for perimeter of rectangle perimeter = 2 * (length + width) . Print the value of perimeter
Similar questions