fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9.  
  10. int a = 1;
  11.  
  12. int b = 1;
  13.  
  14. for(int x = 0; x >= 1000; x = x + 1){
  15.  
  16. a = a + 1;
  17. b = b + 1;
  18. if(a + b > 10)
  19. System.out.println(a + b);
  20.  
  21. }
  22.  
  23.  
  24.  
  25.  
  26. }
  27. }
  28.  
Success #stdin #stdout 0.09s 27752KB
stdin
Standard input is empty
stdout
Standard output is empty