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

Safe Division Guard

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Parse two raw integers and print the integer quotient. Handle invalid numbers and division by zero explicitly.

Input Format

Input is given as whitespace-separated raw tokens exactly in the order described by the problem statement.

Output Format

Print the exact success report or exact error message required by the problem.

Sample Testcases

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

Sample #1
Public sample
10
2
Quotient: 5
Input: left number = "10", right number = "2".
Derivation: left = 10 and right = 2 | quotient = 10 / 2 = 5 | "Quotient: " + 5 = "Quotient: 5".
Output:
Quotient: 5
Sample #2
Public sample
9
3
Quotient: 3
Input: left number = "9", right number = "3".
Derivation: left = 9 and right = 3 | quotient = 9 / 3 = 3 | "Quotient: " + 3 = "Quotient: 3".
Output:
Quotient: 3

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