HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Epoka Science Olympiad 2016 > problem:


10-P3. 50903 - Basic Math Calculator

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

• 10-1. 50962 - Find the Character
• 10-2. 50963 - Append Two Arrays
• 10-3. 50964 - Increasing or Decreasing
• 10-4. 50965 - Draw the Pattern
• 10-5. 50966 - TVSH
• 10-P1. 50901 - Sum of Cubes-1
• 10-P2. 50902 - Translate Score into...
• 10-P3. 50903 - Basic Math Calcu...
• 10-P4. 50904 - Print All Prime Numbers
• 10-P5. 50905 - Convert KPH to MPH
• 11-1. 50967 - Finding Square Roots
• 11-2. 50968 - Number of Letters
• 11-3. 50969 - Chef and Feedback
• 11-4. 50970 - Marbles
• 11-5. 50971 - Belote Game
• 11-P1. 50906 - The Smallest Pair

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.

Basic Math Calculator

Create a calculator that takes a number, a basic math operator (+, -, *, /) and a second number all from user input, and have it print the result of the mathematical operation.

Input: In the first line you will get a number, a math operator (+, -, *, /) and second number.

Output : Result of the calculation.

Sample Input1:

Sample Input2:

Sample Input3:

5 + 7

8 / 5

6 / 0

Sample  Output1:

Sample  Output2:

Sample  Output3:

12

1.6

Error: Division by zero!

 

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

www.contester.ru