Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 I need Help
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Lebron23




PostPosted: Sat Jan 09, 2010 2:56 pm   Post subject: I need Help

Write a program that lets you enter a number n and that calculates the nth Fibonacci number: 1,1,2,3,5,8,... Each new number is the sum of the last two.

Please help me with this on Ready to program Java

Thanks Smile
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: Sat Jan 09, 2010 3:20 pm   Post subject: RE:I need Help

1. This should be in the Java Help forum.
2. Ask yourself what the fibonacci sequence is and how to get it. Then, devise a way to achieve the same results programming. Hint: you can use loops, or recursion.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: