WRITE A PROGRAM TO ENTER LENGTH AND BREADTH OF A RECTANGLE . CALCULATE AND DISPLAY ITS AREA AND PERIMETER.
Answers
Answered by
1
Explanation:
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
Answered by
0
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