BASIC, aka Beginner's All-purpose Symbolic Instruction Code, is a programming language created in 1964 by John G. Kemeny and Thomas E. Kurtz.
#153on PLDB | 60Years Old | 829Repos |
BASIC (an acronym for Beginner's All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use. In 1964, John G. Kemeny and Thomas E. Read more on Wikipedia...
PRINT "Hello, world!"
10 PRINT "Hello World"
20 END
10 REM Hello World in BASIC
20 PRINT "Hello World!"
Public Class StarsProgram
Public Shared Sub Main()
Dim UserName, Answer, stars As String, NumStars As Integer
Console.Write("What is your name: ")
UserName = Console.ReadLine()
Console.WriteLine("Hello {0}", UserName)
Do
Console.Write("How many stars do you want: ")
NumStars = CInt(Console.ReadLine())
stars = New String("*", NumStars)
Console.WriteLine(stars)
Do
Console.Write("Do you want more stars? ")
Answer = Console.ReadLine()
Loop Until Answer <> ""
Answer = Answer.Substring(0, 1)
Loop While Answer.ToUpper() = "Y"
Console.WriteLine("Goodbye {0}", UserName)
End Sub
End Class
Feature | Supported | Example | Token |
---|---|---|---|
Strings | ✓ | "Hello world" | " |
Case Insensitive Identifiers | ✓ | ||
Print() Debugging | ✓ | ||
Line Comments | ✓ | REM A comment | REM |
Gotos | ✓ | 10 REM This BASIC program shows the use of the PRINT and GOTO Statements. 15 REM It fills the screen with the phrase "HELLO" 20 PRINT "HELLO" 30 GOTO 20 | |
Comments | ✓ | REM This BASIC program shows the use of the PRINT and GOTO Statements. | |
Case Sensitivity | X | ||
Semantic Indentation | X | ||
Operator Overloading | X |