TommyEvans
Active member
- Joined
- Feb 19, 2010
- Messages
- 39
- Programming Experience
- Beginner
Alright. I'm making a program for a class, as usual. I need it to grab the smallest number, of the 2 inputted numbers.
Well, there is 4 inputted numbers. For instance the user inputs the following:
Price Ounces
20 4
12 4
I divide the numbers, and get 5 and 3.
The better buy is going to be item 2, as it is $3 per ounce. I can explain more if I need to.
But I need the program to grab the smallest number AFTER dividing, and then display that in a label. I need to know how to grab the smallest number. What statement do I use?
Odds are, it's something simple and I'm overlooking it. I'm quite tired, I'm having a nicotine fit, and I can't concentrate from all of the noise.
Well, there is 4 inputted numbers. For instance the user inputs the following:
Price Ounces
20 4
12 4
I divide the numbers, and get 5 and 3.
The better buy is going to be item 2, as it is $3 per ounce. I can explain more if I need to.
But I need the program to grab the smallest number AFTER dividing, and then display that in a label. I need to know how to grab the smallest number. What statement do I use?
Odds are, it's something simple and I'm overlooking it. I'm quite tired, I'm having a nicotine fit, and I can't concentrate from all of the noise.
Last edited: