Computer Studies

Draw a flowchart and write a program in QBASIC to print the first 10 terms of the series:
S = 3 + 6 + 12 + 24 + ………

QBASIC: Conditional Statements

13 Likes

Answer

Flowchart

Draw a flowchart and write a program in QBASIC to print the first 10 terms of the series: S = 3 + 6 + 12 + 24. Class 7 ICSE Understanding Computer Studies

QBASIC Program

Cls
Let N = 3
Let C = 1
Let S = 0
START:
Print N
S = S + N
C = C + 1
N = N * 2
If C <=< span> 10 Then GoTo START:
Print "SUM = "; S
End

Output

3
6
12
24
48
96
192
384
768
1536
SUM = 3069

Answered By

8 Likes


Related Questions