filmov
tv
Java Tutorial 7 - Exercise - Area and perimeter of a rectangle (Remastered)

Показать описание
Area and perimeter of a rectangle
Write a program that displays the area and perimeter of a rectangle with the width of 5 and height of 8 using the following formula:
area = width x height
perimeter = 2 x (width + height)
Write a program that displays the area and perimeter of a rectangle with the width of 5 and height of 8 using the following formula:
area = width x height
perimeter = 2 x (width + height)