BASIC PROGRAMScms
BASIC PROGRAMScms
CLS
Rem program to calculate the area and perimeter of rectangle
INPUT “Enter the length” ,L
INPUT “Enter the breadth” , B
A=L*B
P = 2*(L + B)
PRINT “Area is”+ A
PRINT “Perimeter is”+P
CLS
Rem program to calculate total bill
PP = 7 * 80
NP = 23 * 35
EP = 5 * 55
SP = 62 * 4
TP = PP + NP + EP + SP
PRINT “Total price is Rs.”+ “ ”+TP
CLS
Rem program to calculate the area and circumference of circle
INPUT “Enter the radius”, R
Pi=3.14
A = Pi * R*R
C = 2 * Pi * R
PRINT “Area is”+ A
PRINT “Circumference is”+ C
CLS
Rem program to calculate Speed
INPUT “Distance travelled” ,D
INPUT “Time taken” ,T
S=D/T
PRINT “Average Speed:” +S
1. CLS
REM program to print in the given format
Print “2” + “3”
Print 12 + 40
Print “Thank”+ “ ”+ “You”
OUTPUT:
23
52
Thank You
2.
CLS
REM program to print in the given format
x=100
y=2
Print x, y
C=x/y
Print C
Print “I got it”
OUTPUT:
100 2
50
I got it