C++ Program for Digital Clock
#include #include #include #include #include void main() { int i=23,j=58,k,l,a=2; mat: for(;;i++) {for(;j<60;j++) {for(k=0;k<60;k++) { l=1; //settextstyle(triplex_font,horiz dir,a) printf("%d:%d:%d",i,j,k); printf("\nif u want to exit press Q"); sleep(l); clrscr(); if(i==23&&j==59&&k==59) { i=0;j=0;k=0; goto mat; } }}} max: getch(); }