Changes

Jump to navigation Jump to search
m
Reverted edits by EdBot (Talk); changed back to last version by Philip J. Rayment
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]]
Siteadmin, Check users, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrators
30,650

edits

Navigation menu