INFORMATION AND COMMUNICATION TECHNOLOGY JS 2

0 of 65 lessons complete (0%)

Chapter 5 – BASIC Programming

Simple BASIC Program

You don’t have access to this lesson

Please register or sign in to access the course content.

SIMPLE BASIC PROGRAM

  1. A Program to calculate 2 numbers

10 REM calculate 2 numbers

20 INPUT A, B

30 LET A = 5

40 LET B = 10

50 SUM = A + B

60 PRINT SUM

70 END

  • Program to find average of 3 numbers

REM A program to find the average of 3 numbers

CLS

INPUT Number 1

INPUT Number 2

INPUT Number 3

TOTAL = Number 1 + Number 2 + Number 3

AVERAGE = TOTAL/3

PRINT TOTAL, AVERAGE

END

  • Program to calculate the area, perimeter and length of the diagonal of a Rectangle whose length and width are given
error: Content is protected !!
Select your currency
NGN Nigerian naira
Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare