FOR/NEXT program question
Posted: Fri Nov 02, 2012 11:25 pm
Im working on two homework assignments at once my next assignment is to
Use a FOR/NEXT loop to total the numbers from 1 through 100. Print the numbers on the screen.
Here is what I have so far....
DIM X AS INTEGER
CLS
FROM X = 1 TO 100
RANDOMIZE TIMER
PRINT (RND * 100);
NEXT X
The program Im having when i try to run this program is that i get an "expected end-of-statement" error on "TO". Why would this be?
Use a FOR/NEXT loop to total the numbers from 1 through 100. Print the numbers on the screen.
Here is what I have so far....
DIM X AS INTEGER
CLS
FROM X = 1 TO 100
RANDOMIZE TIMER
PRINT (RND * 100);
NEXT X
The program Im having when i try to run this program is that i get an "expected end-of-statement" error on "TO". Why would this be?