Computer Science, asked by khushiaggarwal6060, 1 day ago

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 sharylls914
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