Advertisement
MladenKarachanov

Clock

Nov 27th, 2023
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. package firstStepsInCoding;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Clock {
  6.     public static void main(String[] args) {
  7.         Scanner scanner = new Scanner(System.in);
  8.         for (int h = 0; h <= 23; h++) {
  9.             for (int m = 0; m <= 59; m++) {
  10.  
  11.  
  12.                     System.out.printf("%d:%d%n", h, m);
  13.  
  14.                 }
  15.  
  16.             }
  17.         }
  18.     }
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement