Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package firstStepsInCoding;
- import java.util.Scanner;
- public class Clock {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- for (int h = 0; h <= 23; h++) {
- for (int m = 0; m <= 59; m++) {
- System.out.printf("%d:%d%n", h, m);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement