For a hackathon, your team is building an app that tracks the user's spending on bubble tea throughout the month! (In order to improve the financial literacy of high school students, supposedly.)
The user of your app makes bubble tea purchases, the costing dollars.
After each purchase, your program must calculate the total the user has spent on bubble tea up until that point.
Constraints
Input Specification
The first line contains a single integer, .
The next lines contain one integer each, the being .
Output Specification
Output lines containing one integer each, representing the total the user has spent on bubble tea after each of the purchases.
Sample Input
3
1
2
3
Sample Output
1
3
6
Explanation
The user makes purchases.
After the first purchase, the user has spent dollar on bubble tea.
After the second purchase, the user has spent dollars on bubble tea.
After the third purchase, the user has spent dollars on bubble tea.
Comments