Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class clock {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- 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