desislava_topuzakova

01. Clock

Mar 14th, 2021
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1.  
  2. public class demo2 {
  3.     public static void main(String[] args){
  4.       //за всеки един час от 0 до 23
  5.         for (int hour = 0; hour <= 23; hour++) {
  6.             //минути от 0 до 59
  7.             for (int minutes = 0; minutes <= 59 ; minutes++) {
  8.                     System.out.println(hour + ":" + minutes);
  9.  
  10.             }
  11.  
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment