S
S
Sergey Sergey2021-04-26 10:57:10
Java
Sergey Sergey, 2021-04-26 10:57:10

What to add so that the next year starts after December?

for(int year = 2018; year < 2060; year++) {
            System.out.println("Год = " + year);
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Snoyter, 2021-04-26
@Snoyter

Can you clarify your problem. I just don't quite understand what you want. You seem to be just incrementing the numbers through a loop. What's with December?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question