Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created June 27, 2014 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sh4869/e5ba1b67e5ed36302477 to your computer and use it in GitHub Desktop.
Save sh4869/e5ba1b67e5ed36302477 to your computer and use it in GitHub Desktop.
public class Main
{
public static void main(String[] args)
{
String kokoro = "kokoro";
String pyon = "pyon";
String befo = pyon;
String res = kokoro + pyon;
String res2 = "";
int i = 1;
while(i< 10){
i++;
System.out.println(res);
res2 = befo + res;
befo = res;
res = res2;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment