Write a pseudocode and algorithm that to else the user to input 10 numbers in program we display the largest number

2 answers

_0123456789
assuming positive numbers,

largest=0
for i=1 to 10
read val
if (val > largest) largest=val
end for
print largest

so, what change is needed if positive and negative numbers are allowed?