Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < n; i++)
- {
- term1 = sum;
- term2 = total;
- //0+1+1+2+3+5
- lists[i] = term1.addition(term2);
- cout << lists[i];
- sum = term1.addition(term2);
- total = term1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement