Tuesday, August 27, 2019

Qbasic Program to display 1,2,4,7,11,.....10 th term

2076 B.S. Bhadra 10 - Qbasic Program 02
Qbasic Program to display 1,2,4,7,11,.....10 th term


CLS
a = 1
b = 1
i=1
WHILE i<=10
PRINT a
a = a + b
b = b + 1
i = i + 1
WEND
END

Saturday, August 17, 2019

Qbasic Program to display 2,4,12,48....upto 10th term


2076 B.S. Bhadra 01 - Qbasic Program 01

Qbasic Program to display 2,4,12,48....upto 10th term




CLS
a = 2
b = 2
FOR i = 1 TO 10
PRINT a
a = a * b
b = b + 1
NEXT i
END