โ Back to User Input
Question 241
Quotient and Remainder from Input
Quotient and Remainder from Input
Read two integersaandbfrom 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 is17 5, print: 3 2 Useprintfand no trailing newline.
Expected Output:
3 2
Topics:
User Input
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.