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
BigInteger
Division
Report a typo
Sample Input 1:
5
3Sample Output 1:
5 = 3 * 1 + 2Sample Input 2:
10000
10Sample Output 2:
10000 = 10 * 1000 + 0Write a program in Kotlin
fun main() {
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.