Computer Studies
Draw a flowchart and write a program in QBASIC to print the first 10 terms of the series:
S = 7 + 11 + 15 + 19 + ………
QBASIC: Conditional Statements
17 Likes
Answer
Flowchart
QBASIC Program
Cls
Let N = 7
Let C = 1
Let S = 0
START:
Print N
S = S + N
C = C + 1
N = N + 4
If C <= 10 Then GoTo START:
Print "Sum = "; S
End
Output
7
11
15
19
23
27
31
35
39
43
Sum = 250
Answered By
7 Likes
Related Questions
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 display the first 10 terms of the series:
11, 17, 23, ………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 print the first 10 terms of the series:
S = 3 + 6 + 12 + 24 + ………