fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. int pol;
  13. for (int i=0; i<=9; i++)
  14. for (int j=i+1; j<=9; j++){
  15. pol=j*1000+i*100+i*10+j;
  16. System.out.println(pol);
  17. }
  18. }
  19. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
1001
2002
3003
4004
5005
6006
7007
8008
9009
2112
3113
4114
5115
6116
7117
8118
9119
3223
4224
5225
6226
7227
8228
9229
4334
5335
6336
7337
8338
9339
5445
6446
7447
8448
9449
6556
7557
8558
9559
7667
8668
9669
8778
9779
9889