Asked by tesfit
Design an algorithm that keeps reading positive numbers until the user enters a zero value, and determines and outputs the largest number
Answers
Answered by
Writeacher
You might actually get a response if you indicate your subject in a better way. There's a big difference between "it" and "IT."
Answered by
Damon
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
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.