Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout << "please enter 2 numbers : ";
- int arr[SIZE2] = {0}, i = 0;
- for (i = 0; i < 2; i++)
- {
- cin >> arr[i];
- for (i = 2; i < SIZE2; i++)
- {
- arr[i] == ((arr[i - 1]) + (arr[i - 2]));
- }
- }
- cout << arr[i] << endl;
Advertisement
Add Comment
Please, Sign In to add comment