Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- namespace test
- {
- class Program
- {
- static void Main(string[] args)
- {
- for (int h = 0; h <= 23; h++)
- {
- for (int min = 0; min < 59; min++)
- {
- for (int sec = 0; min < 59; sec++)
- {
- Console.Write($"{h:d2}:{min:d2}:{sec:d2}");
- Thread.Sleep(1000);
- Console.Write("\r");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement