KnowledgeBoat Logo

Computer Studies

Draw a flowchart and write a program in QBASIC to display the first 10 terms of the series -1, 2, 5, 8, …….

QBASIC: For-Next Statements

4 Likes

Answer

Flowchart

Draw a flowchart and write a program in QBASIC to display the first 10 terms of the series: -1, 2, 5, 8. Class 7 ICSE Understanding Computer Studies

QBASIC Program

Cls
Let A = -1
For I = 1 To 10
    Print A;
    A = A + 3
Next I
END

Output

-1  2  5  8  11  14  17  20  23  26

Answered By

2 Likes


Related Questions