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:

  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

View More

Subscribe now to gain full access to this lesson note

Take Me There

Click here to gain access to the full notes.