design an algorithm that keeps on reading numbers until the user enters-1and them determines and out puts the largest number .using pseudo codeand flow chart

2 answers

x = 0

1 read n

if n = -1, go to 2

if n > x then x = n

go up to 1

2 print x

end
start- (using start process)
enter number-(using input process)
number not equal to -1 (using decision)
if yes back to enter number
if no end(using End)