Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class program1
- {
- public static void extended_for_loop(int x, int less_than_variable, int jump)
- {
- int number = x;
- for(number++; number < less_than_variable; number += jump)
- {
- System.out.println(number);
- }
- }
- public static void main(String[] args)
- {
- extended_for_loop(1, 11, 3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement