- Joined
- Aug 2, 2009
- Messages
- 156 (0.03/day)
- Location
- Washington The State
System Name | Tiny Computer |
---|---|
Processor | i7 2600k |
Motherboard | ASRock H67M-ITX |
Cooling | Stock for now |
Memory | 8 GB G.skill |
Video Card(s) | Unlocked 6950 @ 910/1400 |
Storage | WD Black 1 TB (FAEX) |
Display(s) | 24" Dell 1920x1080 |
Case | SG07 |
Power Supply | Silverstone 600W |
Software | Windows 7 x64 Pro |
Hi, I was just wondering if it was possible to take this C++ code and make it to where it sums using the Fibonacci sequence.
cin >> n;
sum = 0;
ii = 0; // Loop control variable
while (ii <= n)
{
sum = sum + ii;
ii++;
} // While loop
Last edited: