Answer to Question #283847 in Algorithms for Lahiru

Question #283847

write an algorithm to read 100 numbers then display the largest


1
Expert's answer
2021-12-31T01:41:48-0500
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS