hi.. i'm dave mark.. im new to vb 2008.. i just have to have some question.. the problem is i have to input 10 integer number then after inputting the 10 number .. it will compute the sum, average and the smallest.. i have no problem with sum and average but in smallest number only... how to get the smallest number>>?? pls help me... thankx
finding the small integer number
Page 1 of 1
finding the small integer number finding the small integer number
#2
Re: finding the small integer number
Posted 15 August 2009 - 06:41 AM
Set the smallest to be the first number input, then compare each following input number and keep the smallest.
Mentor Edit:
if count = 0 then smallest = input else if input < smallest then smallest = input end if end if
Mentor Edit:
This post has been edited by AdamSpeight2008: 15 August 2009 - 07:03 AM
Page 1 of 1

Add Reply





MultiQuote
| 


