Ask Question
25 January, 14:28

Identify the steps that are used to find the maximum element from the following finite sequence

1, 8, 12, 9, 11, 2, 14, 5, 10, 4.

+1
Answers (1)
  1. 25 January, 15:33
    0
    1) Assign the first value to a variable x. This is x will take value 1.

    2) Read the next value in the sequence. If this value is greater than current value of x, replace the value of x with the new elemente. Else, just continue.

    3) If there are more elements in the sequence repeat steps from 2. Else, you already have the maximum element of the sequence in x.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Identify the steps that are used to find the maximum element from the following finite sequence 1, 8, 12, 9, 11, 2, 14, 5, 10, 4. ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers