Sum OR Difference
Write a program to take two numbers as input and print their difference if the first number is greater than the second number $otherwise$ print their sum. ### Input First line will contain two numbers, $( N1 )$ and $( N2 ),$ separated by a space. ### Output Output a single line containing the difference of 2 numbers $(N1 - N2)$ if the first number is greater than the second number otherwise outp
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