# Find quotient and remainder

## Problem Statement

Given two integer values via the standard input, divide the first number by the second number, and print the integer quotient and integer remainder of the division operation.

## Input

The first line of input contains the first number n1.

The second line of input contains the second number n2.

## Output

Print the integer quotient and integer remainder of the division: n1 by n2.

## As is

The boilerplate code is already there to read the two number via input from user, in the `main()` function. Also it calls the `printQuotRem()` function. Do not edit this code.

## To do ✍

`printQuotRem()` has two parameters: `n1` and `n2`; which are integer values. Write code inside the function body to compute the integer quotient and integer remainder of the division n1 by n2. Print quotient in the first line of output, and the remainder in the second line of output.

## Example 1

Test input

``````25
3``````

Test output

``````8
1``````

Explanation

8 is the integer quotient, and 1 is the remainder in the division of 25/3.

## Python Program

``````# Complete the following function
# Return the minimum of given integers in nums
def printQuotRem(n1, n2):

# Boilerplate code - Do not edit the following
def main():
n1 = int(input())
n2 = int(input())
printQuotRem(n1, n2)

if __name__ == "__main__":
main()``````

Test case 1

``````-84
6``````
``````-14
0``````

Test case 2

``````1125
10``````
``````112
5``````

Test case 3

``````12541
19``````
``````660
1``````

Test case 4

``````0
15``````
``````0
0``````
``````# Complete the following function
# Return the minimum of given integers in nums
def printQuotRem(n1, n2):
print(n1//n2)
print(n1%n2)

# Boilerplate code - Do not edit the following
def main():
n1 = int(input())
n2 = int(input())
printQuotRem(n1, n2)

if __name__ == "__main__":
main()``````