Last active
May 12, 2022 22:36
-
-
Save abusoid/e195ef4650cf17aa475d105a943a80b4 to your computer and use it in GitHub Desktop.
Head First Java PoolPazle chapter 1, Изучаем Java Головоломка у бассейна Глава 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args){ | |
int x =0; | |
while(x<3){ | |
x=x-1; | |
if (x < 1) { | |
System.out.print("a "); | |
System.out.print("noise"); | |
} | |
x=x+2; | |
if(x>3){ | |
System.out.print("an"); | |
System.out.print(" oyster"); | |
} | |
if(x==1){ | |
x=x-2; | |
} | |
if(x < 1){ | |
System.out.print("annoys"); | |
} | |
System.out.println(""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment