Advertisement
veronikaaa86

01. Clock

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