Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int F = 1;
- int S = 1;
- cout << F << " " << S << " ";
- while(F <= 30) {
- int T = F + S;
- cout << T << " ";
- F = S;
- S = T;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment