//             ***** program watch of digital *****
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<dos.h>
#include<process.h>
 main()
  {
  int d,c,b,e;
  textmode(C40);
  textattr(0x2c);
   for(d=0;d<=59;d++)
   for(c=0;c<=59;c++)
   for(b=0;b<=59;b++)

    {
      if(b<59)
      clrscr();
      window(15,13,25,14);
      textbackground(0);clrscr();
      window(14,12,24,13);
      textbackground(17);clrscr();
      gotoxy(15,12 );
      cout<<d<<":"<<c<<":"<<b;
      delay(1000);
      while(b==30)  exit(0);
    }
   getch();
 }