SHARE
TWEET

Untitled

a guest Feb 24th, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top