Advertisement
Deiancom

Clock

Feb 8th, 2020
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Clock {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         for (int i = 0; i < 24 ; i++) {
  8.             for (int j = 0; j < 60 ; j++) {
  9.                 System.out.printf("%d : %d%n",i,j);
  10.  
  11.             }
  12.  
  13.         }
  14.  
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement