Difference between revisions of "Fibonacci sequence"
From CompSciWiki
Line 3: | Line 3: | ||
|ProblemName=Fibonacci sequence | |ProblemName=Fibonacci sequence | ||
− | |Problem=The | + | |Problem=Write a complete Java program Fibonacci that:<br/> |
+ | *prompts 10 fibonacci numbers<br/> | ||
+ | *prints out the 10th fibonacci number, using System.out.println<br/> | ||
+ | <br/> | ||
+ | Your output should look something like<br/> | ||
+ | The 10th number of the fibonacci sequence is X. (where X should be the 10th number.)<br/> | ||
+ | |||
|SolutionCode=public class Fibonacci | |SolutionCode=public class Fibonacci |
Revision as of 12:32, 1 April 2010
Back to the Program-A-Day homepage
ProblemWrite a complete Java program Fibonacci that:
|
...by students
An image or By Students section | |
---|---|---|
SolutionThe solution... | ||
Code |