Design an algorithm that keeps reading positive numbers until the user enters a zero value, and determines and outputs the largest number
2 answers
You might actually get a response if you indicate your subject in a better way. There's a big difference between "it" and "IT."
start
read nold
1 read new
if new = 0, go to 2
if new >nold, then nold = new
go back to 1
2 print nold
end
read nold
1 read new
if new = 0, go to 2
if new >nold, then nold = new
go back to 1
2 print nold
end