Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PoolPuzzleOne {
- public static void main(String [] args){
- int x = 0;
- while ( x < 4 ){
- System.out.print("a");
- if( x < 1 ){
- System.out.print(" ");
- }
- System.out.print("n");
- if ( x > 1 ){
- System.out.print(" oyster");
- x = x + 2;
- }
- if ( x == 1 ){
- System.out.print("noys");
- }
- if ( x < 1 ){
- System.out.print("oise");
- }
- System.out.println("");
- x = x + 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement