407077: GYM102697 048 Basic Math
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
048. Basic Mathtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Your 5 year old cousin needs your help with some basic math. Write a program for him to do addition and subtraction.
InputThe one and only line that you will be given is a math equation that uses addition and subtraction.
OutputPrint the following "(original equation) = (answer)".
ExampleInput1 + 5 + 7 - 2 =Output
1 + 5 + 7 - 2 = 11