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
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 <= 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
Draw a flowchart and write a program in QBASIC to display the first 10 terms of the series:
144, 121, 100, ………Draw a flowchart and write a program in QBASIC to display the first 10 terms of the series:
11, 17, 23, ………Draw a flowchart and write a program in QBASIC to enter your name and the marks obtained in 10 different subjects in a term examination. Display the sum and average on the screen along with the name.
Draw a flowchart and write a program in QBASIC to print the first 10 terms of the series:
S = 7 + 11 + 15 + 19 + ………