HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Epoka Science Olympiad 2016 > problem:


6-P4. 50884 - Area and Perimeter Of The Rectangle

Epoka Science Olympiad 2016

Start: Apr.11.2016 at 02:07:57 PM
Finish: Apr.24.2016 at 05:00:00 AM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (2)

Contest problems

• 11-P5. 50910 - Flipping Coins
• 6-1. 50937 - Calculate the Average
• 6-2. 50938 - Translate Score into Gr...
• 6-3. 50975 - Cinema Tickets
• 6-4. 50942 - Win or Lose
• 6-5. 50943 - Word Game
• 6-P1. 50881 - Exchange the Values
• 6-P3. 50883 - Win or Lose
• 6-P4. 50884 - Area and Perime...
• 6-P5. 50885 - Calculate the Average
• 7-1. 50945 - Bigger or Smaller
• 7-2. 50946 - Area of Rectangle
• 7-3. 50947 - Calculate the Average
• 7-4. 50948 - Translate Score into Gr...
• 7-5. 50949 - Vowel or Consonant
• 7-P1. 50886 - Even or Odd
• 7-P2. 50887 - Average of Test Scores

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