Changes

Jump to navigation Jump to search
m
Line 5: Line 5:  
'''Statements''': DATA, DEF, DIM, END, FOR...NEXT, GOSUB, GOTO, IF...THEN, LET, MAT, PRINT, READ, REM, RETURN, STOP
 
'''Statements''': DATA, DEF, DIM, END, FOR...NEXT, GOSUB, GOTO, IF...THEN, LET, MAT, PRINT, READ, REM, RETURN, STOP
 
'''Functions''': ABS, ATN, COS, EXP, INT, LOG, RND, SIN, SQR, TAN
 
'''Functions''': ABS, ATN, COS, EXP, INT, LOG, RND, SIN, SQR, TAN
'''Operators''': + - / * ^ ( )
+
'''Operators''':   - / * ^ ( )
    
One of the most noticable items in BASIC programs are the line numbers, which define the order in which the program is executed.  Line numbers are supported, but not required in most modern versions of BASIC.
 
One of the most noticable items in BASIC programs are the line numbers, which define the order in which the program is executed.  Line numbers are supported, but not required in most modern versions of BASIC.
Line 23: Line 23:  
30 RANDOMIZE
 
30 RANDOMIZE
   −
40 LET V = INT( RND( 0 ) * 100 ) + 1
+
40 LET V = INT( RND( 0 ) * 100 )   1
    
50 LET C = 0
 
50 LET C = 0
Line 31: Line 31:  
70 INPUT G
 
70 INPUT G
   −
80 LET C = C + 1
+
80 LET C = C   1
    
90 IF G = V THEN GOTO 150
 
90 IF G = V THEN GOTO 150
Line 59: Line 59:     
[[Category:Information technology]]
 
[[Category:Information technology]]
[[Category:computer science]]
+
[[Category:Computer Science]]

Navigation menu