ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Beginners > задача:


50884 - Area and Perimeter Of The Rectangle

Гость
• Вопросы к жюри (2)

Задачи сборника

• 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 ...
• 51040 - Annual profit
• 51038 - Simple interest
• 51041 - Plane Segmentation
• 51039 - Automated billing system
• El Clasico
• 51007 - Function f(x)
• 50481 - Car Parking
• 50480 - What quadrant is it?

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

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