Arithmetic on Two Numbers
EasyRead two integers a and b and print five lines: sum = a + b, difference = a - b, product = a * b, quotient = a / b, and remainder = a % b, each formatted exactly as shown with the value in place of the expression. If b is 0, print the first three lines, then print division by zero on its own line and return 1 without printing a quotient or remainder. If the two integers cannot be read, print invalid input and return 1.
Success Criteria
Your code must pass 5 test case(s) to complete this exercise. 3 hint(s) are available if you need help.
How did you find this exercise?
Your rating helps us improve the content.
Sign in to track your progress
You can work on exercises as a guest, but sign in to track your progress and save your submissions.