Write a program that reads two natural numbers and , with , and prints the integer division and the remainder of divided by .
Remember that, by definition, i must be the only integer numbers such that and .
Input consists of and , with .
Print a line with the integer division and the remainder of divided by , separated by a space.
Although the conditions for the input of this exercise prevent divisions by zero, check what happens to your program in that case.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:25:50.604Z
© Jutge.org, 2006–2026.
https://jutge.org