Easy
Add With +=
Read a starting number and then three more numbers. Add each one to the first with
+= and print the running value after each addition.Input
Four integers on separate lines.
Output
Three lines.
Sample 1
Input
10 1 2 3
Output
11 13 16
Sample 2
Input
0 5 5 5
Output
5 10 15
Output appears here