Changes

BASIC (programming language)

No change in size, 20:50, April 1, 2008
Reverted edits by [[Special:Contributions/EdBot|EdBot]] ([[User_talk:EdBot|Talk]]); changed back to last version by [[User:Philip J. Rayment|Philip J. Rayment]]
'''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
'''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.
30 RANDOMIZE
40 LET V = INT( RND( 0 ) * 100 ) + 1
50 LET C = 0
70 INPUT G
80 LET C = C + 1
90 IF G = V THEN GOTO 150
[[Category:Information technology]]
[[Category:Computer Sciencecomputer science]]
Siteadmin, check user, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrator
30,432
edits