answersLogoWhite

0

startNum% = 0

endNum% = 38

counter% = 1

PRINT "Counter", "Number"

PRINT

FOR num% = startNum% TO endNum% STEP 2

PRINT counter%, num%

counter% = counter% + 1

NEXT

*NOTE*: This prints out all of the even numbers starting from 0 up to 38; if you didn't wish 0 to be included as well; then, change it to say...

startNum% = 2

endNum%= 40

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga

Add your answer:

Earn +20 pts
Q: How do you print the first 20 even numbers in qbasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp