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

preview_player
Показать описание
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)
Рекомендации по теме