2 Arithmetic operations
CodeChefOpen on judge ↗
In this question , you will be given 2 numbers as input and 1 character describing the operation you have to do. First read the 2 numbers and then read a character as input. If the character is '+' then multiply add the two numbers and if it is '-' then subtract the second number from the first one. Then print the answer. ###Input: - First line of input will contain a number $T$, which is
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start