003-001-004
Arithmetic Operators: Time Conversion Program
Easy
Problem Description
Arithmetic Operators: Time Conversion Program
In this problem, you will create a program that converts total seconds into minutes using the division operator (/) and seconds using the modulo operator (%), and displays the result to standard output.
Learning Objective: Learn calculation using division (/) and modulo (%) operators
Create a program that converts total seconds into minutes and seconds.
Input
Line 1: Total seconds (integer)
Output
Minutes: [minutes]
Seconds: [seconds]
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up