CJCoding With Joseph

Quotient and Remainder from Input

Read two integers a and b from standard input (in that order). Print the quotient (a / b) and the remainder (a % b) separated by a single space. For example, if the input is 17 5, print:

3 2

Use printf and no trailing newline.

Expected Output:

3 2
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
17 5\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.