Clock Simulation

From CompSciWiki
Revision as of 11:32, 11 April 2010 by ChristopherJ (Talk | contribs)

Jump to: navigation, search

Back to the Program-A-Day homepage

Problem

Write a program that will display every second in a 24 hour clock time cycle. Make the output in the format:

00:00:01
00:00:02
00:00:03

Warning: As with many other problems done with nested loops, this program should take some time to execute. It will not print everything instantly.

 

Getting Started

Wiki loops01.jpg

Solution

Code

Solution Code

Back to the Program-A-Day homepage