Computer Science, asked by jk007d, 1 day ago

1. Write algorithm and draw flow chart for minimum value in a list.​

Answers

Answered by jockerhitman028
0

Answer:

lelo pudinaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Answered by Jasleen0599
0

Algorithm:

  1. Start
  2. Read size of list from the user say 'n'
  3. Declare list of size n, say a[n]
  4. initialize loop variable, i = 0
  5. repeat while i < n:
  • read the list element at position 'i'
  • increment i by 1

    6. initialize smallest element, min = a[0]

    7. initialize loop variable, i = 0

    8. repeat while i < n:

  • if a[i] < min, then

                    min = a[i]

  • increment i by 1

    9. print smallest number, min

    10. stop

Similar questions