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 print their sum.
Input:
- First line will contain the first number ()
- Second line will contain the second number ()
Output:
Output a single line containing the difference of 2 numbers if the first number is greater than the second number otherwise output their sum .
Constraints
Sample Input:
82
28
Sample Output:
54
No comments:
Post a Comment