Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03 / Tasks and Solutions / 11. Clock.cpp
blob: 6386ca04f113e1b5420faf62ef8bc71ea0b7c932 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
using namespace std;

int main()
{
	for (int hour = 0; hour <= 23; hour++)
	{
		for (int min = 0; min <= 59; min++)
		{
			if (hour < 10)
				cout << 0;
			cout << hour << ":";
			if (min < 10)
				cout << 0;
			cout << min << endl;
		}
	}
}