A=1
DO WHILE A<= 10
PRINT A
A=A+3
LOOP
PRINT A
END
Answers
Answered by
1
Required Answer:-
Given Cσde:
A = 1
DO WHILE A <= 10
PRINT A
A = A + 3
LOOP
PRINT A
END
To Find:
- Output (QBASIC)
Output:
1
4
7
10
13
Explanation:
The given loop iterates if A <=10 is true.
Now, as soon as the condition becomes false, the loop is terminated.
Again, value of A is printed (Line 6).
So, the output goes like -
1
4
7
10
13
•••♪
Attachments:
Similar questions