write a program to accept the lenght and breadth of a rectangle.
Answers
Answered by
1
Explanation:
Apply formula to calculate rectangle perimeter i.e.perimeter = 2 * (length + width). Apply formula to calculate rectangle area i.e.area = length * width. Finally, print the value of perimeter and area. * Java program to find perimeter and area of a rectangle
Similar questions