Previous Next
0 / 15
Module DEMO-33-63DEMO-OOP-33

Integer Division Report

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read two integers and print the integer quotient and remainder.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. first integer
  2. second integer

Output Format

Print the exact report in this order:

  1. Quotient
  2. Remainder

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
17
5
Quotient: 3
Remainder: 2
Input: first integer = 17, second integer = 5.
Key calculation(s): quotient = 17 / 5 | remainder = 17 % 5 | "Quotient: " + quotient = "Quotient: 3".
Output:
Quotient: 3
Remainder: 2
Sample #2
Public sample
20
4
Quotient: 5
Remainder: 0
Input: first integer = 20, second integer = 4.
Key calculation(s): quotient = 20 / 4 | remainder = 20 % 4 | "Quotient: " + quotient = "Quotient: 5".
Output:
Quotient: 5
Remainder: 0

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings