PRINT "10th slot:", VALUE(10) ' Print out the tenth slot
This would cause an error ("Subscript out of Range") because
the array VALUE
only has subscripts 1, 2, 3, 4, and 5.
Say that rain has fallen on two out of three days:
Here is the start of
a program that keeps these values in an array called RAIN
.
DIM RAIN(1 TO 3) ' The array of rainfall values ' LET RAIN(1) = _______ ' Rainfall for day 1 LET RAIN(2) = _______ ' Rainfall for day 2 LET RAIN(3) = _______ ' Rainfall for day 3 ' More statements go here END
Fill in the blanks.