SubjectPaid lesson
BASIC PROGRAMMING II
CT
ClassNotes Team 2 MIN READUPDATED 6 JUL 2026Computer 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
30 LET B = 12
40 LET C = A + B
50 PRINT ABS(C)
60 END
LOG – Using natural logarithm.
10 CLS
…