Write a qbasic program to print numbers stated below USING WHILE…WEND STATEMENT. 1,4,9,…upto 10th term.
Answers
Answered by
2
Answer:
Using FOR…..NEXT loop
CLS
FOR I = 2 TO 20 STEP 2
PRINT I
NEXT I
END
ANOTHER METHOD
CLS
LET N =2
FOR I = 1 TO 10
PRINT N
N=N+2
NEXT I
END
Using WHILE Loop
CLS
LET N= 2
WHILE N<=20
PRINT N
N=N+2
WEND
Similar questions
World Languages,
23 hours ago
English,
23 hours ago
Math,
23 hours ago
Math,
1 day ago
Social Sciences,
1 day ago
Math,
8 months ago
Hindi,
8 months ago
English,
8 months ago