Skip to content

Instantly share code, notes, and snippets.

@sharmaabhinav
Created September 6, 2014 06:45
Show Gist options
  • Save sharmaabhinav/b8aa9fb029e2cd8ad671 to your computer and use it in GitHub Desktop.
Save sharmaabhinav/b8aa9fb029e2cd8ad671 to your computer and use it in GitHub Desktop.
public class HelloWorld{
public static void main(String []args){
int p = 0;
int q = 1;
int n = 13;
int tmp = 0;
while(n > 0){
System.out.println(q);
tmp = q;
q = q + p;
p = tmp;
n = n - 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment