how may i compare between some numbers and find smallest number in"C++"?

Hanz2013-11-06T09:59:43Z

Favorite Answer

you can put the numbers in array

and go through the loop using a for loop

in the for loop ,
you want to compare 2 items of the array at a time so the lowest gets
assigned to variable that contains the lowest number so far

when loop is done, you get the smallest number