To Display Natural Numbers From 1 to 10 (Qbasic Code)
Using FOR ...... NEXT
Using FOR ...... NEXT
- CLS
FOR i = 1 TO 10 STEP 1
PRINT i
NEXT i
END
- CLS
c = 1
WHILE c <= 10
PRINT c
c = c + 1
WEND
END
- CLS
c = 1
DO WHILE c <= 10
PRINT c
c = c + 1
LOOP
END