- 2
Write an algorithm for finding the minimum(smallest) number from a group of 10 numbers
3 Réponses
+ 2
Please provide a link to your Code Playground code so we can help you troubleshoot the specific issues you are running into.
The Code Playground should be relatively easy to find in the website version of SoloLearn, but if you are in the app version, it can be accessed via the curly braces, green circle with plus sign to add a new project, then select the project type.
Looking forward.
+ 2
Please show your own attempts before asking for code.
+ 1
One possible way to do it: Use a variable and set it to the first value of the array/list. Then iterate over the array and whenever you find a value that is smaller than the value currently held in the variable, update the variable accordingly. Once you iterated over the whole array, the variable will have the same value of the smallest number in the array