HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50884 - Area and Perimeter Of The Rectangle

Guest
• Review clarifications (2)

Section problems

• 50895 - Hours Minutes and Seconds
• 50902 - Translate Score into Grade
• 50938 - Translate Score into Grade
• 50890 - Convert Celsius to Fahrenheit
• 50958 - Number of Passengers in Train
• 50889 - Convert to Minutes and Sec...
• 50952 - Print All Numbers from N d...
• 50900 - Put the Numbers in Descend...
• 50884 - Area and Perimeter Of ...
• 51106 - Polar Bear
• 51109 - Integer to English
• 51110 - The area of a circle
• 51108 - First Unique Character
• 50899 - How Many Years
• 50551 - Camelot
• 50590 - Bronze medalists
• 50602 - Birthday Ivanova

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

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

 

Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî âûïîëíèòü âõîä.

www.contester.ru