Advertisement
Deiancom

Clock part 2

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