Computer Studies
Draw a flowchart and write a program in QBASIC to display the sum of the first 10 terms of the series S = 1 + 2 + 4 + 8 + …….
QBASIC: For-Next Statements
14 Likes
Answer
Flowchart
QBASIC Program
Cls
Let A = 1
Let S = 0
For I = 1 To 10
S = S + A
A = A + A
Next I
Print "Sum = "; S
End
Output
Sum = 1023
Answered By
8 Likes
Related Questions
Draw a flowchart and write a program in QBASIC to display the sum of the first 10 terms of the series S = 5 + 8 + 11 + …….
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 + …….
Draw a flowchart and write a program in QBASIC to calculate the area and the perimeter of 10 different rectangles. Take the length and breadth as inputs and display the result.
Draw a flowchart and write a program in QBASIC to enter the name and marks secured in 12 subjects in a term examination. Display the name, total and the average marks.