Asked by Rehema

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

Answers

Answered by Rehema
_0123456789
Answered by Steve
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?
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions