Current and Previous Sum

Easy

📝 Description

Print sum of current number and previous number in sequence

Input Format

List of numbers

Output Format

Sequence of sums

Constraints

List length ≤ 100

🔍 Sample Input

1 2 3 4 5
            

✅ Sample Output

1 3 5 7 9
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run