Computer Science, asked by kaiqigames313, 5 months ago

Write QBASIC code to print numbers from 1 to 10 using FOR…NEXT.

Answers

Answered by 08navya2
8

Answer:

CLS

FOR i = 1 TO 10 STEP 1

PRINT i

NEXT i

END

Explanation:

pls mark me as the brainliest and follow me

Answered by nayababedin3648
2

Answer:

To Display Natural Numbers From 1 to 10 (Qbasic Code)

Using FOR ...... NEXT

CLS

FOR i = 1 TO 10 STEP 1

PRINT i

NEXT i

END

Using WHILE ..... WEND

CLS

c = 1

WHILE c <= 10

PRINT c

c = c + 1

WEND

END

Using DO WHILE ..... LOOP

CLS

c = 1

DO WHILE c <= 10

PRINT c

c = c + 1

LOOP

END

Explanation:

hope it will help you

Similar questions