Finish program
Posted: Sun Sep 24, 2006 12:14 pm
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); "."
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); "."