Advertisement
veronikaaa86

01. Clock

Nov 6th, 2021
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. package nestedLoops;
  2.  
  3. public class P01Clock {
  4. public static void main(String[] args) {
  5. for (int hour = 0; hour <= 23; hour++) {
  6. for (int min = 0; min <= 59; min++) {
  7. System.out.printf("%d:%d%n", hour, min);
  8. }
  9. }
  10. }
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement