Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3.  
  4. namespace test
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. for (int h = 0; h <= 23; h++)
  11. {
  12. for (int min = 0; min < 59; min++)
  13. {
  14. for (int sec = 0; min < 59; sec++)
  15. {
  16. Console.Write($"{h:d2}:{min:d2}:{sec:d2}");
  17. Thread.Sleep(1000);
  18. Console.Write("\r");
  19. }
  20.  
  21. }
  22. }
  23.  
  24.  
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement