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

Draw a flowchart and write a program in QBASIC to print the first 10 terms of the series: S = 7 + 11 + 15 + 19. Class 7 ICSE Understanding Computer Studies

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 <=< span> 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