SEE COMPUTER SCIENCE
Complete Notes • MCQs • Online Quiz • PYTHON • QBASIC • SEE 2083
Wednesday, October 16, 2019
102. Qbasic program to display 2 , 4, 8, 14, 22 …upto 10th terms
102. Write a program to display 2 , 4, 8, 14, 22 …upto 10
th
terms
DECLARE SUB DISP( )
CLS
CALL DISP
END
SUB DISP ( )
A = 2
B = 2
FOR I = 1 TO 10
PRINT A
A = A + B
B = B + 2
NEXT I
END SUB
1 comment:
Anonymous
December 5, 2022 at 6:46 AM
Please also post showing output
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Please also post showing output
ReplyDelete