Area
and Perimeter Of The Rectangle
Write a program that asks the user to type the
width and the height of a rectangle and then outputs the area and the
perimeter of that rectangle.
Input: Two integer
numbers as width and heigth of the rectangle.
Output
: The area and perimeter of the rectangle with a space
in between them.
Note: Formula for Area of a rectangle =
width*height
Formula for Perimeter of a rectangle = 2*(width+height)
Sample Input1:
|
Sample Input2:
|
4 5
|
30 40
|
Sample Output1:
|
Sample Output2:
|
20 18
|
1200 140
|
Для отправки решений необходимо