program to print all Fibonacci numbers between two given numbers

program to print all Fibonacci numbers between two given numbers

Page 1 of 1

4 Replies - 3854 Views - Last Post: 26 May 2009 - 12:55 PM Rate Topic: -----

#1 khranshu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-May 09

program to print all Fibonacci numbers between two given numbers

Posted 26 May 2009 - 10:05 AM

program to print all Fibonacci numbers between two given numbers
Is This A Good Question/Topic? 0
  • +

Replies To: program to print all Fibonacci numbers between two given numbers

#2 JackOfAllTrades  Icon User is online

  • Saucy!
  • member icon

Reputation: 5950
  • View blog
  • Posts: 23,208
  • Joined: 23-August 08

Re: program to print all Fibonacci numbers between two given numbers

Posted 26 May 2009 - 10:10 AM

There are 17 gazillion snippets here about Fibonacci numbers. Knock yourself out.
Was This Post Helpful? 0
  • +
  • -

#3 IngeniousHax  Icon User is offline

  • |>|20-514<|{3|2

Reputation: 78
  • View blog
  • Posts: 1,358
  • Joined: 28-March 09

Re: program to print all Fibonacci numbers between two given numbers

Posted 26 May 2009 - 11:02 AM

Indeed, there is most definitely a bagillion*10 amount of fibonacci programs on here. It's not too hard once you have the information you need.
Was This Post Helpful? 0
  • +
  • -

#4 computerfox  Icon User is offline

  • straight vegetarian kid

Reputation: 50
  • View blog
  • Posts: 3,772
  • Joined: 29-January 09

Re: program to print all Fibonacci numbers between two given numbers

Posted 26 May 2009 - 12:26 PM

void youAnswer(){
while(0==0){
cout<<"\nWhat's your question...\n";
cout<<"\nI'm sorry, but we don't do your work for you here...\n";
cout<<"\nWe only help with code presented...\n";
cout<<"\nThank you...\n";
}
return;
}



A+ worthy code :D

This post has been edited by computerfox: 26 May 2009 - 12:27 PM

Was This Post Helpful? 0
  • +
  • -

#5 IngeniousHax  Icon User is offline

  • |>|20-514<|{3|2

Reputation: 78
  • View blog
  • Posts: 1,358
  • Joined: 28-March 09

Re: program to print all Fibonacci numbers between two given numbers

Posted 26 May 2009 - 12:55 PM

#include <iostream>
#include <cmath>

void fibonacci();
using namespace std;

int main() {
double x;
double y;
cout << "Enter the two numbers to have the sequence calculated from and to" << endl;
cin >> x >> y;
fibonacci();
return 0;
}

void fibonacci() {
/**************************************************************************
All your code should go here if you want to use a function
Also, I have basically laid out the simplest part of the program
now all you have to do is figure out the formula and how
to implement the user numbers into your function
of the fibonacci sequence
**************************************************************************/
}


This post has been edited by IngeniousHax: 26 May 2009 - 12:57 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1