Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package NestedLoops;
- public class P01Clock {
- public static void main(String[] args) {
- for (int hours = 0; hours <= 23; hours++) {
- for (int minutes = 0; minutes <= 59; minutes++) {
- System.out.printf("%d:%d%n", hours, minutes);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement