write an algorithm to read 100 numbers then display the largest
Start
Declare Real number
Declare Real largestNumber=MinValue
For i=1 to 100
Display "Enter number: "
Input number
If number>largestNumber then
largestNumber=number
End if
End for
Display "The largest number is :",largestNumber
Stop
Comments
Leave a comment