Computer Science, asked by gopalkgp2772, 1 year ago

Write a algorithm and draw a flowchart to find the largest of n numbers

Answers

Answered by TheRose
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