Skip to content

Amor296/project1-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Digital clock

this is test repo #include #include <windows.h> using namespace std; int main() { int hrs,min,sec; cout<<"hours"; cin>>hrs; cout<<"minutes"; cin>>min; cout<<"seconds"; cin>>sec; while(true) { system("cls"); if (sec>59) { min++; sec=0; } if (min>59) { hrs++; min=0; } if(hrs>23) hrs=0; cout<<hrs<<":"<<min<<":"<<sec<<endl; sec++; Sleep(900); } return 0; }

About

this is test repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published