Skip to content
C

Five Arithmetic Results

Easyjava

Read two integers a and b and print the five basic arithmetic results.

Input: two integers separated by whitespace (b is not zero).

Output: five lines:

Sum: <a+b>
Difference: <a-b>
Product: <a*b>
Quotient: <a/b>
Remainder: <a%b>

Input (stdin)

Output

Run your code to see output here...