Write a menu based java program with comment and glossary that calculates perimeter and area of geometric figure i.e. circle,
square, rectangle and triangle.
Answers
Answered by
1
Explanation:
A rectangle is a flat figure in a plane.It has four sides and four equal angles of 90 degree each.In rectangle all four sides are not of equal length like square, sides opposite to each other have equal length.Both diagonals of rectangle have equal length.
Examples:
Input : 4 5
Output : Area = 20
Perimeter = 18
Input : 2 3
Output : Area = 6
Perimeter = 10
Similar questions