Yes, make an array and make one single integer variable.
Put the first variable from the array in the single variable and start looping.
If the next variable is LOWER than the the one in the single variable, replace it.
When you get to the end of the loop, the lowest value will be in the single variable.
@JacobMatthew: Since you're new I'll first explain that since this question is probably homework, the first thing you SHOULDN'T do is "write code".
The code for the example is pretty simple, so an explanation might first be in order.
Secondly, the code you wrote does not do what the OP (original poster) requested and even if it is to be used as just an example, has some serious flaws and should not be used.
OR, if you are asking how to fix that code -- that's another issue and you should (please) start a new thread with your question in it.