Asked by Henry Seals
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
Answers
Answered by
oobleck
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
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
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.