DrawCode Practice Problem

Running Total by Day

Given daily sales `(sale_date, amount)`, compute a running total of `amount` ordered by `sale_date`.

Examples

Input

daily amounts 10, 20, 5

Output

running totals 10, 30, 35

Constraints


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer