Practice

Seconds to Minutes and Seconds

2025/Oct/Nov·Variant 1
EASYArithmetic

Convert a total number of seconds into minutes and remaining seconds.

Input: A single integer representing the total number of seconds. Output: Two lines stating the number of minutes and the number of remaining seconds.

Example:

Input:  130
Output: The number of minutes is 2
        The number of seconds is 10
Premium is coming soon. All grading features are currently unlocked.

Sample Test Cases

Test 1: Over two minutes
Inputs: 130
Expected: The number of minutes is 2 The number of seconds is 10
Test 2: Under a minute
Inputs: 59
Expected: The number of minutes is 0 The number of seconds is 59
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade