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
Social Sciences,
1 month ago
Math,
1 month ago
History,
1 month ago
Social Sciences,
3 months ago
Math,
9 months ago
English,
9 months ago
Math,
9 months ago