Skip to content

This simple C program implements a digital clock that allows users to set a starting time and then displays the current time in a continuous loop. The clock supports hours, minutes, and seconds, and it includes input validation to ensure a valid time format.

Notifications You must be signed in to change notification settings

suraweera-AGSS/Digital-Clock-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digital Clock in C

This simple C program implements a digital clock that allows users to set a starting time and then displays the current time in a continuous loop. The clock supports hours, minutes, and seconds, and it includes input validation to ensure a valid time format.

suraweera-agss

Features

~Set the initial time for the digital clock.
~Continuous display of the current time with a one-second interval.
~Input validation to ensure a valid time format (24-hour clock).


How to Use

1.Compile the program using a C compiler.
2.Run the compiled executable.
3.Set the initial time when prompted.
4.The digital clock will start displaying the current time and update every second.

Run the code in Replit : [https://replit.com/@SithumSuraweera/Digital-Clock]

About

This simple C program implements a digital clock that allows users to set a starting time and then displays the current time in a continuous loop. The clock supports hours, minutes, and seconds, and it includes input validation to ensure a valid time format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages