Computer Studies
Write down the format of:
(a) WHILE - WEND
(b) FOR-NEXT
QBASIC: For-Next Statements
17 Likes
Answer
(a) WHILE - WEND The format of WHILE - WEND is as follows:
WHILE <condition>
...
task to be done
...
WEND
(b) FOR - NEXT The format of FOR - NEXT is as follows:
FOR <variable> = <initial value> TO <Final value>
...
Task to be done
...
NEXT <variable>
Answered By
11 Likes
Related Questions
What are the different ways to generate a loop in BASIC programming?
Explain the following with an example:
(a) Continuous loop
(b) Step loopDraw a flowchart and write a program in QBASIC to display the first 10 terms of the series 3, 6, 12, 24, …….
Draw a flowchart and write a program in QBASIC to display the first 10 terms of the series -1, 2, 5, 8, …….