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