Write a pseudocode algorithm that will accept a group of numbers and Calculate its sum. The program stops when the user enter 0 as the number

sum=0

loop
read num
exit if num==0
sum += num
endloop

a bit trickier if more than one value can be on a line of input