Spocoman

01. Clock

Nov 21st, 2021 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Clock
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int h = 0;
  10.             int m = 0;
  11.  
  12.             for (h = 0; h <= 23; h++)
  13.             {
  14.                 for (m = 0; m <= 59; m++)
  15.                 {
  16.                     Console.WriteLine($"{h}:{m}");
  17.                 }
  18.             }
  19.         }
  20.     }
  21. }
  22.  
Add Comment
Please, Sign In to add comment