Could you please finish this short program for me so that I do not have to re-enter the three numbers
each time i use the program. I would like to enter the numbers once and then have the program select a new
number upon request without inputting the numbers a second or third time. That way i can get as many numbers as i
please after opening the program. Thank you so much for your help.
E. Spears.
CLS
DIM item$(1 TO 3)
INPUT "Item 1: ", item$(1)
INPUT "Item 2: ", item$(2)
INPUT "item 3: ", item$(3)
RANDOMIZE TIMER
n=INT(RND * 3 +1)
CLS
PRINT "The item that was selected was "; item$(n); "."
Finish program
Maybe uh... you need to think?Nathan1993 wrote:This was a question, and that was a answer. Hence the name "QBASIC Questions and Answers."Pritchard wrote:EDIT: Btw, wrong forum?
Maybe you... uhh... can't read? :-p
I moved the topic... Uhh... maybe you uhh... are looking kind of uhhh... stupid now?
I have left this dump.
- {Nathan}
- Veteran
- Posts: 1169
- Joined: Thu Aug 19, 2004 6:08 pm
- Location: The wetlands of central Ohio, USA
- Contact:
Yes, I am looking rather stupid now.Z!re wrote:Maybe uh... you need to think?Nathan1993 wrote:This was a question, and that was a answer. Hence the name "QBASIC Questions and Answers."Pritchard wrote:EDIT: Btw, wrong forum?
Maybe you... uhh... can't read? :-p
I moved the topic... Uhh... maybe you uhh... are looking kind of uhhh... stupid now?
<_<
>_>
*runs and hide's in the corner and cuts wrist*