Division

Report a typo

You need to read two large positive numbers a and b. Divide a by b and find the quotient q and the remainder r. Then, print the result in the following format: a = b * q + r

Sample Input 1:

5
3

Sample Output 1:

5 = 3 * 1 + 2

Sample Input 2:

10000
10

Sample Output 2:

10000 = 10 * 1000 + 0
Write a program in Kotlin
fun main() {
// write your code here

}
___

Create a free account to access the full topic