HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


50884 - Area and Perimeter Of The Rectangle

Guest
• Review clarifications (2)

Volume problems

• 50903 - Basic Math Calculator
• 50885 - Calculate the Average
• 50887 - Average of Test Scores
• 50895 - Hours Minutes and Seconds
• 50902 - Translate Score into Grade
• 50890 - Convert Celsius to Fahrenheit
• 50889 - Convert to Minutes and Sec...
• 50900 - Put the Numbers in Descend...
• 50884 - Area and Perimeter Of ...
• 51113 - The Menu
• 51111 - Even Numbers
• Cineplexx
• Cirku Belluci
• 51040 - Annual profit
• 51038 - Simple interest
• 51041 - Plane Segmentation
• 51039 - Automated billing system

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