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. // your code goes here
  13.  
  14. // 01110
  15. // 10001
  16. // 10001
  17. // 10001
  18. // 01110
  19.  
  20. for(int a=4;a>=2;a++){
  21. System.out.print("01110");
  22. break;
  23. }
  24. System.out.println(" ");
  25. int b=5;
  26. while(b>=3){
  27. System.out.print("10001");
  28. b++;
  29. break;
  30. }
  31. System.out.println(" ");
  32. int c=6;
  33. do{
  34. System.out.print("10001");
  35. c++;
  36. break;
  37. }while(c>=3);
  38. System.out.println(" ");
  39. int d=7;
  40. while(d>=4){
  41. System.out.print("10001");
  42. d++;
  43. break;
  44. }
  45. System.out.println(" ");
  46. int e=8;
  47. do{
  48. System.out.print("01110");
  49. e++;
  50. break;
  51. }while(e>=4);
  52. }
  53. }
Success #stdin #stdout 0.08s 46852KB
stdin
Standard input is empty
stdout
01110 
10001 
10001 
10001 
01110