COMPUTER STUDIES SS 1

0 of 80 lessons complete (0%)

Chapter 10 – BASIC Programming Language

Simple BASIC Programs

You don’t have access to this lesson

Please register or sign in to access the course content.

SIMPLE BASIC PROGRAMS

  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” A, B

70 END

  • Program to find average of 3 numbers

REM A program to calculate the total and average of 3 numbers

CLS

INPUT Number1

INPUT Number2

INPUT Number3

TOTAL = Number1 + Number2 + Number3

AVERAGE = TOTAL/3

PRINT TOTAL, AVERAGE

END

  • Program to calculate the area, perimeter and length of the diagonal of a triangle 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