Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Tasks2;
- public class Cycle {
- public static void main(String[] args) {
- for (int i = 100; i >= 0; i--) {
- System.out.println(i);
- }
- for (int a = 0; a <= 100; a++) {
- System.out.println(a);
- }
- for (int a = 0; a <= 100; a = a + 2) {
- System.out.println(a);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement