#include #include #include #include int hour=0,minute=0,second=0; int time (int x) { while (x<=60) { time(100); x++; return x; system("cls"); if (while(0)) min(minute); } } int min(int m) { while(m<=60) { m++; system("cls"); return m; time(second); if (m==60) hr(hour); } } int hr(int h) { h++; system("cls"); return h; time(second); } main() { seconds: { time(second); } minutes: { min(minute); } hours: { hr(hour); } while(1) { printf("%d:%d:%d", hr(hour),min(minute),time(second)); } }