Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication16;
- public class JavaApplication16
- {
- public static void main(String[] args)
- {
- int a = 1;
- double b = 1;
- for (int rep = 1;rep <= 10; rep++)
- {
- for (a = a; a<=100;a++)
- {
- if((a >=1 && a <=10)||(a >=21 && a <=30)||(a >=41 && a <=50)||(a >=61 && a <=70)||(a >=81 && a <=90) )
- {
- System.out.print(" "+a);
- }
- }
- System.out.println(" ");
- for( b = b;b<=100;b++)
- {
- if((b >=11 && b <=20)||(b >=31 && b <=40)||(b >=51 && b <=60)||(b >=71 && b <=80) )
- {
- System.out.print(" "+b);
- }
- }
- System.out.println(" ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement