Created
September 6, 2014 06:45
-
-
Save sharmaabhinav/b8aa9fb029e2cd8ad671 to your computer and use it in GitHub Desktop.
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 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