If I have 5 user-inputed numbers, how would I make a function that could return the lowest number?
If I have 5 user-inputed numbers, how would I make a function that could return the lowest number?
How would you make one that would return the lowest of two?
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
No, I have a function already. I just have to know what the write inside it so that it returns the lowest of the 5 numbers.
How would you write a function that returns the lowest of three values? (You can reuse the function that returns the lowest of two.)
It's not the policy here to write code for you, especially as you have not posted anything that you have tried or having trouble with.
For example, it is pretty important to know if those five values are supposed to be in an array / container (because then the function already exists in the standard library).
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.