$ whois basic
BASIC
first released in 1964 · by John G. Kemeny, Thomas E. Kurtz
$ guessprog --inspect basic
- year
- 1964
- paradigm
- procedural
- family
- basic
- memory
- automatic gc
- binding
- static
- safety
- strong
BASIC(7)
- AUTHORS
- John G. Kemeny, Thomas E. Kurtz
- HISTORY
- John Kemeny and Thomas Kurtz created BASIC, the Beginner's All-purpose Symbolic Instruction Code, at Dartmouth College, where the first program ran on 1 May 1964. They wanted every student, not only science majors, to use a computer, and paired the language with the Dartmouth Time-Sharing System. In 1975 Bill Gates and Paul Allen wrote Altair BASIC, the first product of Microsoft, and by the 1980s almost every home computer booted straight into a BASIC prompt. Variable names carry their type: A is a number, A$ a string.
- USAGE
- The original line-numbered BASIC is historic, but it introduced a generation to programming. Its descendants live on in Visual Basic .NET, VBA, FreeBASIC and QB64, and in countless retro computing hobby projects.
- SEE ALSO
- BASIC on Wikipedia ↗
10 REM GUESS THE NUMBER
20 LET N = INT(RND(1) * 100) + 1
30 PRINT "GUESS A NUMBER FROM 1 TO 100"
40 INPUT G
50 IF G = N THEN 90
60 IF G < N THEN PRINT "TOO LOW"
70 IF G > N THEN PRINT "TOO HIGH"
80 GOTO 40
90 PRINT "YOU GOT IT!"
100 END