
-----------------------------------
wOOhooo
Mon Feb 25, 2008 8:54 am

Unlimited Variables (HELP!)
-----------------------------------
Ok heres the problem i have. In class we need to create a program that will tell you what the greater number is and you have to be able to put as many numbers in as you want. I have no idea how to make a varaiable have multiple numbers in it.

-----------------------------------
Tony
Mon Feb 25, 2008 9:13 am

RE:Unlimited Variables (HELP!)
-----------------------------------
sounds like you need just two variables at any given point.

-----------------------------------
OneOffDriveByPoster
Mon Feb 25, 2008 9:36 am

Re: Unlimited Variables (HELP!)
-----------------------------------
Ok heres the problem i have. In class we need to create a program that will tell you what the greater number is and you have to be able to put as many numbers in as you want. I have no idea how to make a varaiable have multiple numbers in it.Any sample input/output?

-----------------------------------
BigBear
Mon Feb 25, 2008 3:11 pm

Re: Unlimited Variables (HELP!)
-----------------------------------
This is something you need to think about it is a very useful programming technique. One way you go do it is in the beginning ask them how many numbers they want to enter and make a for loop to get and compare the numbers. YOu can also ask the user every time if they would like to enter another number.
