Advertisement
veronikaaa86

1. Часовник

Feb 11th, 2023
994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Demo {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         for (int h = 0; h <= 23; h++) {
  8.             for (int m = 0; m <= 59; m++) {
  9.                 System.out.printf("%d:%d%n", h, m);
  10.             }
  11.         }
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement