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

Minutes To Hours And Minutes

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read total minutes and convert them to hours and remaining minutes.

Input Format

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

  1. total minutes

Output Format

Print the exact report in this order:

  1. Hours
  2. Minutes

Sample Testcases

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

Sample #1
Public sample
130
Hours: 2
Minutes: 10
Input: total minutes = 130.
Key calculation(s): hours = 130 / 60 | remainingMinutes = 130 % 60 | "Hours: " + hours = "Hours: 2".
Output:
Hours: 2
Minutes: 10
Sample #2
Public sample
59
Hours: 0
Minutes: 59
Input: total minutes = 59.
Key calculation(s): hours = 59 / 60 | remainingMinutes = 59 % 60 | "Hours: " + hours = "Hours: 0".
Output:
Hours: 0
Minutes: 59

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