QBasic Programming

WAP to generate the series 3,10,5,16………………11th term

DECLARE SUB SERIES ()
CLS
CALL SERIES
END

SUB SERIES
A = 3
FOR I = 1 TO 11
PRINT A;
IF A MOD 2 = 0 THEN
A = A \ 2
ELSE
A = A * 3 + 1
END IF
NEXT I
END SUB

WAP to generate the series 2,2,4,6,10………….13th term (Prev Lesson)
(Next Lesson) WAP to generate 7,22,11,34……………19th terms
Back to QBasic Programming
Notice: compact(): Undefined variable: limits in /home/bhimgautam34/public_html/wp-includes/class-wp-comment-query.php on line 853

Notice: compact(): Undefined variable: groupby in /home/bhimgautam34/public_html/wp-includes/class-wp-comment-query.php on line 853

No Comments

Post a Reply

Course Curriculum

error: Content is protected !!