HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginner > problem:


50220 - Area and Perimeter Of The Rectangle

Volume problems

• 50145 - Close City
• 50164 - The roots of a quadratic eq...
• 50192 - Nr of Missing Guests
• 50193 - Passing the course
• 50194 - OSHEE Electric Bill
• 50217 - Exchange the Values
• 50218 - Say Hello
• 50219 - Win or Lose
• 50220 - Area and Perimeter Of ...
• 50221 - Calculate the Average
• 50222 - Even or Odd
• 50223 - Average of Test Scores
• 50225 - Convert to Minutes and Sec...
• 50226 - Convert Celsius to Fahrenheit
• 50227 - Smallest Number
• 50228 - Even Numbers
• 50229 - Print All Numbers

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