- Jan 28, 2007
- 755
- 0
- 71
i have a general question...
if you were to compare 3 numbers and then order them
say int1, int2, int3...and then display them into a Messagebox in order from smallest to greatest. Pretty much I use a series of If Then statements to compare the various cases that could occur (ex: int2 > int3 > int1, int3 > int2 > int1) and then assign the greatest value to a variable N1, the second largest a variable N2, and the smallest a variable N3. All Ive done is declare the N1, N2, N3 as Integers....However it seems that it keeps giving me values of zero, what am I doing wrong?
if you were to compare 3 numbers and then order them
say int1, int2, int3...and then display them into a Messagebox in order from smallest to greatest. Pretty much I use a series of If Then statements to compare the various cases that could occur (ex: int2 > int3 > int1, int3 > int2 > int1) and then assign the greatest value to a variable N1, the second largest a variable N2, and the smallest a variable N3. All Ive done is declare the N1, N2, N3 as Integers....However it seems that it keeps giving me values of zero, what am I doing wrong?
