DevJourney · code I wrote while learning

README.md

827 B

Single File Programming Question

Problem Statement

Karthik wants a program to find the quotient and remainder of two variables using pointers. Since he is not familiar with the pointers, he asks for your help.

Help him by writing the program.

Input format :

The input consists of two integers a and b, representing dividend and divisor, separated by space.

Output format :

The output prints two space-separated integers representing the quotient and remainder.

Refer to the sample output for formatting specifications.

Code constraints :

In this scenario, the test cases fall under the following constraints:

1 ≤ a ≤ 250

1 ≤ b ≤ 10

Sample test cases :

Input 1 :

1 1

Output 1 :

1 0

Input 2 :

20 7

Output 2 :

2 6

Input 3 :

246 7

Output 3 :

35 1