Advertisement
jmilne22

Untitled

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