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

Loan Installment Divider

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Parse a loan amount and month count, then print the monthly installment. Handle invalid numbers and invalid month counts.

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
1200
12
Monthly: 100.00
Input: loan amount = "1200", months = "12".
Derivation: amount = 1200.00 and months = 12 | monthly = 1200.00 / 12 = 100.00 | "Monthly: " + "100.00" = "Monthly: 100.00".
Output:
Monthly: 100.00
Sample #2
Public sample
500.5
5
Monthly: 100.10
Input: loan amount = "500.5", months = "5".
Derivation: amount = 500.50 and months = 5 | monthly = 500.50 / 5 = 100.10 | "Monthly: " + "100.10" = "Monthly: 100.10".
Output:
Monthly: 100.10

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