Computer Studies
Correct the errors in the following flowchart and write the program:

QBASIC: For-Next Statements
6 Likes
Answer
Flowchart

QBASIC Program
Cls
Input "Enter a number"; N
For I = 1 To N
M = I + I
Print M
Next I
End
Output
Enter a number? 5
2
4
6
8
10
Answered By
6 Likes
Related Questions
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.
A class teacher wants to calculate the average marks obtained by a student in three terms in a class of 50 students. Draw a flowchart and write a program in QBASIC to enter the name and the total marks obtained by a student in three terms. Display the result along with the name.
Draw a flowchart and write a program in QBASIC to display 10 different values of the expression (a + b)2. Take the values of a and b as inputs after each iteration.
Correct the errors in the following flowchart and write the program: