#include<iostream>
#include<stdlib.h>
#include<unistd.h>// to make loop delay
using namespace std;
int main()
{
	
	int h=0,m=0,s=0;
	int i =0;
	
	while(i==0)
	{
		
		system("cls");
		cout<<"\t\t***********************************"<<endl;
		cout<<"\t\thour: "<<h<<"\t\tminute: "<<m<<"\t\tsecond: "<<s<<endl;
			cout<<"\t\t***********************************"<<endl;	
		s++;
		
		if (s==60)
		{
			m++;
			s=0;
			if(m==60)
			{
				h++;
				m=0;
				s=0;
				if (h==60)
				{
					h=0;	
				}
			}
		}
		sleep(1);
	}
	return 0;
}
