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 hour = 0; hour <= 23; hour++) {
- for (int min = 0; min <= 59; min++) {
- System.out.printf("%d:%d%n", hour, min);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement