Uploaded by minineudive

sum and average flowchart

advertisement
Start
average = 0
sum = 0
amount = 0
“Hello! Please
enter a number
greater than or
equal to zero.”
Get number
sum = sum + num
amount = amount + 1
y
num
>=
0?
Stop
“You have entered a
number less than
zero!
You have entered”
amount “numbers”
“The average for the
values entered is: ”
average
“The sum of the
number you entered
is: “ sum
average =
sum/amount
Download