Skip to content

Instantly share code, notes, and snippets.

@abusoid
Last active May 12, 2022 22:36
Show Gist options
  • Save abusoid/e195ef4650cf17aa475d105a943a80b4 to your computer and use it in GitHub Desktop.
Save abusoid/e195ef4650cf17aa475d105a943a80b4 to your computer and use it in GitHub Desktop.
Head First Java PoolPazle chapter 1, Изучаем Java Головоломка у бассейна Глава 1
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