Skip to main content

Practice · 1 of 3

Integer Division Behavior

CHALLENGE
Difficulty: beginner+25 XP

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.

Back to lesson: Practice: Arithmetic Clinic