Computer Science, asked by mohamadstop11, 1 month ago

write an algorithm that takes in 15 numbers then display the minimum value

full answear pls

Answers

Answered by allysia
2

Answer:

  • Save the numbers in an array.
  • Initialise a random variable to any random element of the array.
  • Compare the value of the variable using a loop to all other elements one by one.
  • Use conditional loop to check if other values are smaller then the number set in the variable if yes then set the varaible to the newer smaller one.
  • Keep repeating till the list is processed at least once.
Similar questions