Exercise: Making a Stopwatch
Let's create a program that prints time in minutes, seconds, and centiseconds on the console.
We'll cover the following
Stopwatch
Write a code to create a stopwatch program, which displays time in minutes, seconds, and centiseconds (one-hundredth of a second).
Understanding the logic
We know that:
- 100 centiseconds = 1 second
- 60 second = 1 minute
- 60 minutes = 1 hour
Get hands-on with 1200+ tech skills courses.