Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class demo2 {
- public static void main(String[] args){
- //за всеки един час от 0 до 23
- for (int hour = 0; hour <= 23; hour++) {
- //минути от 0 до 59
- for (int minutes = 0; minutes <= 59 ; minutes++) {
- System.out.println(hour + ":" + minutes);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment