Practice ยท 1 of 3
Integer Division Behavior
Implement void program(void) printing three lines for a=7, b=2: the int quotient, the remainder, and the double quotient with 1 decimal:
``
7/2=3
7%2=1
7/2=3.5
`
Line 3 must be a real double division (7.0/2`), not a computed constant.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Arithmetic Clinic