the teacher asked priya to make a program in Qbasic and print the series 2,5,10.....101.she wants that the program shoupd run 10 times . what logic will you suggest toher to apply to get the desired output?
Answers
Answered by
17
Let a=2
PRINT =$
A=A(2
if A is greater than 10
END
Answered by
4
Answer:
cls
for a = 2 to 30 step 3
print a
next a
Explanation:
The question has a mistake, instead of 2,5,10 it should have been 2,5,8
Similar questions