Write a algorithm and draw a flowchart to find the largest of n numbers
Answers
Answered by
10
Given a set of n numbers, to find the largest is a simple matter.Iterate through the numbers with a controlled loop structure usinga maxValue variable. If the next variable is greater than maxValue,then that variable is the new maxValue. This continues until thereare no more variables. Once that occurs, maxValue will have thelargest number in the set of n numbers
Similar questions