Basic arithmetic
Time limit1sMemory limit256 MB
Print the sum, difference, product, quotient, and remainder of two given natural numbers.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
You are given two natural numbers and . Write a program that prints , , , the quotient of divided by , and the remainder of divided by , each on its own line.
Input
The first line contains the two natural numbers and , separated by a space. ()
Output
Print on the first line, on the second line, on the third line, the quotient of divided by on the fourth line, and the remainder of divided by on the fifth line. The quotient and the remainder are both integers.