C Program to design Stop Watch (Clock)

#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main(){
int i,j,k;
for(i=0;i<=24;i++){
for (j=0;j<=60;j++){
for(k=0;k<=60;k++){
printf(“%d:%d:%d”,i,j,k);

delay(1000);
clrscr();
}

}
}
getch();
}

 

 

Leave a Reply