954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to write this program in C++ or Java (Fibonacci)?

I want to make a Program that takes two inputs one initial number and one final number for example if I input 1 as the beginning number and 13 as the final, I would like the program to output the Fibonacci sequence: 1,1,2,3,5,8,13.. I hope someone understands it.. Pleease i beg yoou dont put the fibonacci pseudo code I know it very well... Just help me out with this particular problem.. pleease

rayden150
Light Poster
32 posts since Aug 2010
Reputation Points: 9
Solved Threads: 0
 

We don't do homework here. Please make an attempt yourself if you want help.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

> I want to make a Program that takes two inputs one initial number and one final number for example if I input 1 as the beginning number and 13 as the final,
So make it
Or at least figure out how to google "fibonacci sequence".

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

If you know pseudo code you should be able to easily write it in any language you know. If you don't know the language don't try to write a program in that language! If you cannot achieve the task by yourself, then do NOT ask us to do it for you. This is clearly homework, so you should have learned it in your class, and if you did not, its your problem. If you have any question regarding the the program, we will be happy to help you, but you have to show some effort. People like you really annoy me. If you just at least google it, I am sure you will get plenty of programs. I am 14, and I can easily write the program, knowing the algorithm (which I do) in any language I know!

sergent
Posting Pro
598 posts since Apr 2011
Reputation Points: 70
Solved Threads: 22
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: