| OUTPUT |
QBASIC Basic to Advance Programs, QBASIC Control Statement, Looping Statement, Arrays, Modular Programming, File Handling, SLC & SEE Oriented Solved Questions, Model Questions, Projects etc.
Showing posts with label Numeric Series. Show all posts
Showing posts with label Numeric Series. Show all posts
Wednesday, October 13, 2021
QBASIC Program to Print the Display the Numeric Series 55555, 5555, 555, 55, 5 (SUB/FUNCTION Procedure)
CLS
n = 55555
FOR I = 1 TO 5
PRINT n;
n = n \ 10
NEXT I
END
n = 55555
FOR I = 1 TO 5
PRINT n;
n = n \ 10
NEXT I
END
QBASIC Program to Print the series 7, 22, 11, 34, 17, 52, 26, 13, 40, 20 (SUB/FUNCTION Procedure)
CLS
a = 7
FOR i = 1 TO 10
PRINT a;
IF a MOD 2 = 0 THEN
a = a \ 2
a = 7
FOR i = 1 TO 10
PRINT a;
IF a MOD 2 = 0 THEN
a = a \ 2
ELSE
a = a * 3 + 1
a = a * 3 + 1
Monday, October 11, 2021
QBASIC program to Print the Perfect Square numbers from 1 to 100 (1, 4, 9, 16, 25, 36, 49, 64, 81, 100)
In mathematics, a square number or perfect square is an integer that is the square of an integer. In other words, it is the product of some integer with itself. For example, 9 is a square number, since it equals 32 and can be written as 3 × 3.
CLS
FOR i = 1 TO 100
n = SQR(i)
FOR i = 1 TO 100
n = SQR(i)
Program to print the Numeric Series 3, 10, 5, 16, 8 (Hill-stone Number)
Using FOR...NEXT
CLS
n = 3
FOR i = 1 TO 5
PRINT n;
IF n MOD 2 = 0 THEN
n = n / 2
n = 3
FOR i = 1 TO 5
PRINT n;
IF n MOD 2 = 0 THEN
n = n / 2
Program to Print the Fibonacci Series 1, 1, 2, 3, 5, 8 ... up to 10th term
Using FOR...NEXT
CLS
x = 1
y = 1
PRINT x; y;
FOR i = 1 TO 10
z = x + y
PRINT z;
x = y
x = 1
y = 1
PRINT x; y;
FOR i = 1 TO 10
z = x + y
PRINT z;
x = y
Write a program to print the numeric series 0.11111, 0.1111, 0.111 .... 0.1
Using FOR...NEXT
CLS
n = 0.11111
FOR i = 1 TO 5
PRINT n;
n = 0.11111
FOR i = 1 TO 5
PRINT n;
WAP to print 0.1, 0.11, 0.111 .... up to 7th term.
Using FOR...NEXT
CLS
a = 0.1
FOR i = 1 TO 7
PRINT a;
a = 0.1
FOR i = 1 TO 7
PRINT a;
Write a program to print 5, 125, ... up to 7th term (QBASIC)
Using FOR...NEXT
CLS
n = 5
FOR i = 1 TO 7
PRINT n;
n = 5
FOR i = 1 TO 7
PRINT n;
Monday, October 4, 2021
QBASIC Program to print the series 0, 2, 4, 6, 8 ...... up to 100
Using FOR...NEXT
CLS
FOR i = 0 TO 100 STEP 2
PRINT i;
NEXT i
FOR i = 0 TO 100 STEP 2
PRINT i;
NEXT i
QBASIC Program to print the series 1, 3, 5, 7, 9 ...... 25
Using FOR...NEXT
CLS
FOR i = 1 TO 25 STEP 2
PRINT i;
NEXT i
FOR i = 1 TO 25 STEP 2
PRINT i;
NEXT i
QBASIC Program to print the series 10, 8, 6, 4, 2
Using FOR...NEXT
CLS
FOR i = 10 TO 1 STEP -2
PRINT i;
FOR i = 10 TO 1 STEP -2
PRINT i;
NEXT i
Saturday, October 2, 2021
QBASIC Program to print the series 1000, 500, 250, 125, 62.5
Using FOR...NEXT
CLS
n = 1000
FOR i = 1 TO 5
PRINT n;
n = 1000
FOR i = 1 TO 5
PRINT n;
QBASIC Program to print the series 1, 27, 125, 343, 729
Using FOR...NEXT
CLS
n = 1
FOR i = 1 TO 5
PRINT n ^ 3;
n = 1
FOR i = 1 TO 5
PRINT n ^ 3;
QBASIC Program to print the series 1, 8, 27, 64, 125...up to 10th term.
Using FOR...NEXT
CLS
FOR i = 1 TO 10
PRINT i ^ 3;
NEXT i
FOR i = 1 TO 10
PRINT i ^ 3;
NEXT i
QBASIC Program to print the series 1, 4, 9, 16, 25....up to 10th term.
Using FOR...NEXT
CLS
FOR i = 1 TO 10
PRINT i ^ 2;
NEXT i
FOR i = 1 TO 10
PRINT i ^ 2;
NEXT i
QBASIC Program to print the series 5, 25, 125, 625, 3125 …. up to 7th terms.
Using FOR...NEXT
CLS
a = 5
FOR i = 1 TO 7
PRINT a;
a = a * 5
a = 5
FOR i = 1 TO 7
PRINT a;
a = a * 5
Subscribe to:
Posts (Atom)
[Download PDF] Computer Science Book Gread-10 in Nepali Language
If you are searching for class 10 Computer Science in Nepali pdf for free download then you are at the right page. This book is soley publi...