Finding the smallest integer

Hi,

I've just started programming a few weeks ago and i have a problem which involves me finding the lowest number. That is, if the input is 123 12 1342 1 the program should print out the lowest number, ie. 1 in this example.

Could anyone please lend me some advice on how to go about

solving the problem. I have been able to find the min of set

amount of numbers (like the minimum of 2/3/4 numbers) , but i have no idea how to go about solving

the problem where the size of the numbers inputted varies.

sorry in advance if some of it doesnt make sense....its a bit hard to explain.

Thanks in advance,

Theorbb