|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
RAndom C++ Problem
#include <iostream>
using namespace std; int main() { int a,b,c,d; b=0; c=1; d=1; cout << "Which Fib do you want to find?"; cin >> a; do { cout << c << endl; c = c + d; cout << d << endl; d = c + d; b++; } while (b<a) cout << "And those are the fibs" << endl; } Any help? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Random Stuff | Brm789 | Chit-Chat | 11 | 20-11-2003 16:13 |
| Random Thought... | Marygrace | Chit-Chat | 12 | 14-05-2003 15:50 |
| How random is random???? | archiver | 1999 | 0 | 23-06-2002 21:59 |
| Random | Marc P. | Chit-Chat | 138 | 13-02-2002 15:11 |
| Random Question... | Jessica Boucher | Chit-Chat | 26 | 02-07-2001 21:37 |