Skip to content

OrionJoshi/Digital-Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Digital clock is a simple clock which is made by using c++ programming language.

This program will generate a digital clock using c program. The logic behind to implement this program is as follows:

Initialize hour, minute, seconds with 0.
Run an infinite loop.
Increase second and check if it is equal to 60 then increase minute and reset second to 0.
Increase minute and check if it is equal to 60 then increase hour and reset minute to 0.
Increase hour and check if it is equal to 24 then reset hour to 0.

About

Digital clock using C /C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages