Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 5; i++) {
- System.out.println(i);
- }
- TO JEST TO SAMO CO TO
- int i = 0;
- if (i < 5) System.out.println(i); // 0
- i++;
- if (i < 5) System.out.println(i); // 1
- i++;
- if (i < 5) System.out.println(i); // 2
- i++;
- if (i < 5) System.out.println(i); // 3
- i++;
- if (i < 5) System.out.println(i); // 4
- i++;
- if (i < 5) System.out.println(i); // 5 < 5, koniec, warunek fałszywy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement