Advertisement
Spocoman

10. Clock - part 2

Aug 28th, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public class Clock2 {
  2.     public static void main(String[] args) {
  3.         for (int h = 0; h < 24; h++) {
  4.             for (int m = 0; m < 60; m++) {
  5.                 for (int s = 0; s < 60; s++) {
  6.                     System.out.printf("%d : %d : %d\n", h, m, s);
  7.                 }
  8.             }
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement