desislava_topuzakova

01. Clock

Oct 16th, 2021
753
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Clock_01 {
  2.     public static void main(String[] args) {
  3.         //часове от 0 до 23
  4.         for (int hour = 0; hour <= 23; hour++) {
  5.             //минута от 0 до 59
  6.             for (int minute = 0; minute <= 59; minute++) {
  7.                 System.out.println(hour + ":" + minute);
  8.             }
  9.         }
  10.     }
  11. }
RAW Paste Data