djelad1

Untitled

Nov 21st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. cout << "please enter 2 numbers : ";
  2. int arr[SIZE2] = {0}, i = 0;
  3. for (i = 0; i < 2; i++)
  4. {
  5. cin >> arr[i];
  6. for (i = 2; i < SIZE2; i++)
  7. {
  8. arr[i] == ((arr[i - 1]) + (arr[i - 2]));
  9. }
  10. }
  11. cout << arr[i] << endl;
Advertisement
Add Comment
Please, Sign In to add comment