Skip to content

We use essential cookies to sign you in and remember your settings. With your permission we also use analytics cookies to understand how the site is used. See our privacy policy or fine-tune this anytime at cookie settings.

SubjectPaid lesson

BASIC PROGRAMMING II

ClassNotes Team 2 MIN READUPDATED 6 JUL 2026

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:

  1. SQR(  )
  2. ABS(  )
  3. LOG (  )
  4. SIN (  )
  5. COS (  )
  6. TAN (  )
  7. INT  (  )
  8. RND (  )
  9. 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