Stop at zero
Read whole numbers one by one and add them up, until you read a 0. Then print the sum. Numbers after the 0 must not be read.
You don't know in advance how many numbers come, so loop with while (true) and leave the loop with break when the number is 0.
Results will be shown here
Press Run to start your program.