The algorithm below is used to find the largest element in a list of numbers.
By modifying one of the lines in the program it is possible to make the algorithm find the SMALLEST element. Which line would need to be modified and how?

The algorithm below is used to find the largest element in a list of numbers By modifying one of the lines in the program it is possible to make the algorithm f class=

Respuesta :

The line that can be modified in the algorithm to return the smallest of the list is line 04

From the question, we understand that:

  • The algorithm returns the largest of all elements in a list

The above action is executed on line 04

To change the function of the algorithm to return the smallest, line 04 must be modified as follows:

IF (num < target)

Hence, the line that can be modified in the algorithm to return the smallest of the list is line 04

Read more about algorithms at:

https://brainly.com/question/24793921