Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1.     for(int i = 0; i < n; i++)
  2.     {
  3.         term1 = sum;
  4.         term2 = total;
  5.         //0+1+1+2+3+5
  6.         lists[i] = term1.addition(term2);
  7.         cout << lists[i];
  8.         sum = term1.addition(term2);
  9.         total = term1;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement