KnowledgeBoat Logo

Computer Studies

Draw a flowchart and write a program in QBASIC to display the sum of the first 10 terms of the series S = 99 + 90 + 81 + …….

QBASIC: For-Next Statements

8 Likes

Answer

Flowchart

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

QBASIC Program

Cls
Let A = 99
Let S = 0
For I = 1 To 10
    S = S + A
    A = A - 9
Next I
Print "Sum = "; S
End

Output

Sum = 585

Answered By

5 Likes


Related Questions