BASIC
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using BASIC.
This programming language may be used to instruct a computer to perform a task.
Execution method: | Interpreted |
---|---|
Lang tag(s): | basic, qbasic, freebasic, thinbasic |
See Also: |
Your Help Needed
If you know BASIC, please write code for some of the tasks not implemented in BASIC.
If you know BASIC, please write code for some of the tasks not implemented in BASIC.
BASIC is the Beginner's All-purpose Symbolic Instruction Code. John G. Kemeny and Thomas E. Kurtz invented BASIC at Dartmouth College during 1963 and 1964. (Their implementation evolved into True BASIC.)
BASIC became popular, with many different implementations for various computers. As the decades passed, the many dialects of BASIC diverged from the original language. Though an ANSI standard exists for BASIC, it is irrelevant to most BASIC programmers, who only target one implementation of BASIC.
Category:BASIC Implementations lists the many implementations of BASIC in Rosetta Code.
Links[edit]
Subcategories
This category has the following 4 subcategories, out of 4 total.
Pages in category "BASIC"
The following 290 pages are in this category, out of 290 total.
A
B
C
- Catalan numbers
- Chaos game
- Character codes
- Check that file exists
- Circles of given radius through two points
- Classes
- Code segment unload
- Color of a screen pixel
- Colour bars/Display
- Command-line arguments
- Comments
- Compile-time calculation
- Compound data type
- Conditional structures
- Constrained random points on a circle
- Convert seconds to compound duration
- Conway's Game of Life
- Copy a string
- Count in octal
- Count occurrences of a substring
- Cousin primes
- Create a file
- Create a two-dimensional array at runtime
D
- Damm algorithm
- Date format
- Day of the week
- Delete a file
- Department numbers
- Detect division by zero
- Determine if a string is collapsible
- Determine if a string is numeric
- Dice game probabilities
- Digital root
- Dinesman's multiple-dwelling problem
- Discordian date
- Dot product
- Dragon curve
- Draw a clock
- Draw a sphere
- Dynamic variable names
E
F
G
H
I
K
L
- Leap year
- Least common multiple
- Length of an arc between two angles
- Leonardo numbers
- Literals/Integer
- Literals/String
- Logical operations
- Long multiplication
- Longest common subsequence
- Loops/Break
- Loops/Continue
- Loops/Do-while
- Loops/Downward for
- Loops/For
- Loops/For with a specified step
- Loops/Foreach
- Loops/Infinite
- Loops/N plus one half
- Loops/Nested
- Loops/While
- Lychrel numbers
M
N
O
P
Q
R
- Random number generator (included)
- Random numbers
- Ranking methods
- Read a configuration file
- Read a file line by line
- Read entire file
- Real constants and functions
- Recaman's sequence
- Remove lines from a file
- Rename a file
- Return multiple values
- Reverse a string
- Rock-paper-scissors
- Roman numerals/Encode
- Roots of unity
- Rot-13
- Run as a daemon or service
- Run-length encoding
- Runge-Kutta method
- Runtime evaluation
S
- Scope modifiers
- Scope/Function names and labels
- Search a list
- SEDOLs
- Self-describing numbers
- Sequence of non-squares
- Shell one-liner
- Sierpinski triangle
- Sieve of Eratosthenes
- Sleep
- Snake
- Sorting algorithms/Bubble sort
- Sorting algorithms/Gnome sort
- Sorting algorithms/Insertion sort
- Sorting algorithms/Pancake sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Stooge sort
- Special characters
- Square but not cube
- Stack traces
- Stair-climbing puzzle
- Stern-Brocot sequence
- String append
- String case
- String comparison
- String concatenation
- String length
- String matching
- String prepend
- Strip a set of characters from a string
- Strip control codes and extended characters from a string
- Strip whitespace from a string/Top and tail
- Substring
- Substring/Top and tail
- Sum and product of an array
- Sum digits of an integer
- Sum multiples of 3 and 5
- Sum of a series
- Sum of squares
- System time
T
- Take notes on the command line
- Tau number
- Temperature conversion
- Terminal control/Clear the screen
- Terminal control/Coloured text
- Terminal control/Cursor movement
- Terminal control/Cursor positioning
- Terminal control/Display an extended character
- Terminal control/Hiding the cursor
- Terminal control/Inverse video
- Terminal control/Positional read
- Terminal control/Ringing the terminal bell
- The Twelve Days of Christmas
- Thue-Morse
- Tic-tac-toe
- Time a function
- Tokenize a string
- Towers of Hanoi
- Trigonometric functions
- Truncate a file
- Truth table
- Two identical strings