ni032mas

Untitled

Jul 23rd, 2016
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. class PoolPuzzleOne {
  2.     public static void main(String [] args){
  3.         int x = 0;
  4.         while ( x < 4 ){
  5.             System.out.print("a");
  6.             if( x < 1 ){
  7.                 System.out.print(" ");
  8.             }
  9.             System.out.print("n");
  10.             if ( x > 1 ){
  11.                 System.out.print(" oyster");
  12.                 x = x + 2;
  13.             }
  14.             if ( x == 1 ){
  15.                 System.out.print("noys");
  16.             }
  17.             if ( x < 1 ){
  18.                 System.out.print("oise");
  19.             }
  20.             System.out.println("");
  21.             x = x + 1;
  22.         }
  23.     }
  24. }
Add Comment
Please, Sign In to add comment