Alarm Clock
unknown
plain_text
3 years ago
698 B
7
Indexable
#include<conio.h> #include<dos.h> main() { clrscr(); int h,m,s; int a,b,c; printf("enter current time="); scanf("%d%d%d",&h,&m,&s); printf("ENTER Alarm Time="); scanf("%d%d%d",&a,&b,&c); start: ; for(h;h<24;h++) { for(m;m<60;m++) { for(s;s<60;s++) { clrscr(); textcolor(GREEN); cprintf("\n\n\n\n\n %d:%d:%d",h,m,s); if(a==h) if(b==m) if(c==s) { sound(1000); delay(10000); nosound(); s=s+10; } s=0; } m=0; } h=0; goto start; getch(); } }
Editor is loading...