Question
Create a running sum. A user will enter umbers that willbe added to the sum and when a negative number is encountered adding numbers and write out the final result. You're going to create a flow chart and pseudo code
Answers
sum=0
loop
read num
exit loop if num < 0
sum += num
end loop
print sum
loop
read num
exit loop if num < 0
sum += num
end loop
print sum
Related Questions
Hi, I'm confused about an assignment. I'm not sure what to do and would like some help.
An exampl...
draw flow chart & write pseudo code for greatest common divisor of two numbers
suppose in a positive numbers(including o) and the negative numbers are to be separately counted.
a...
Write a pseudo code that allows a user to enter the names and phone numbers of up to 20 friends