Use the modulus arithmetic symbol for part of the calculation/conversion.
Set up multiple functions to solve the problem.
Have the user input number of seconds.
Program should convert number of seconds to minutes and remaining seconds.
Conversion function for converting seconds to minutes.
Main function for user input and to pass argument into Conversion Function.
Output = Show number of seconds input, conversion to minutes, and remaining seconds.
あなたの回答
tips
プレビュー