BASIC PROGRAMMING II : LSUS
Computer Science ICT SSS2 THIRD Term
WEEK 3
BASIC PROGRAMMING II
Content
BASIC BUILT-IN FUNCTIONS
These are Mathematical functions that are built into BASIC. Some common BASIC functions are shown below:
- SQR( )
- ABS( )
- LOG ( )
- SIN ( )
- COS ( )
- TAN ( )
- INT ( )
- RND ( )
- EXP ( )
SIMPLE BASIC PROGRAM TO ILLUSTRATE BUILT-IN FUNCTION
SQR – Finds the square root of a positive number.
10 PRINT SQR (275)
ABS – This displays the absolute value of a given number.
10 CLS
20 LET A = 10
Subscribe now to gain full access to this lesson note
Take Me ThereClick here to gain access to the full notes.