Skip to content
CampusEduX

Running Total

Easyjava
Learn the Concept: Variables

Start with an initial value in a total variable, then add three more numbers to it one by one. Print the final value of total.

Input: four integers separated by whitespace — the starting value, then three numbers to add.

Output: one line — the final total.

Related Problems

Input (stdin)

Output

Run your code to see output here...