Reversing digit of previous two terms and adding them
int x = reversDigits ( first ) ; int y = reversDigits ( second ) ; cout << x + y << " ▁ " ; int temp = second ; second = x + y ; first = temp ; } } }