Computer Science, asked by nearvi35521, 1 day ago

Write a qbasic program to print numbers stated below USING WHILE…WEND STATEMENT. 1,4,9,…upto 10th term.

Answers

Answered by jallanmegha
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