Write a Java program to calculate and display the area and perimeter of a rectangle whose length is 4cm and width is 6cm. [Area = length * width, Perimeter = 2 * (length + width)]
Answers
Answered by
0
Java: Perimeter of a rectangle
A perimeter is a path that surrounds a two-dimensional shape. The word comes from the Greek peri (around) and meter (measure). The perimeter can be used to calculate the length of fence required to surround a yard or garden. Following image represents the perimeter of a rectangle.
Attachments:
Similar questions
Computer Science,
16 hours ago
Economy,
16 hours ago
English,
1 day ago
Social Sciences,
1 day ago
Geography,
8 months ago
Physics,
8 months ago