5,102 views
39 votes
39 votes
Write a program to print all odd numbers between 20 and 50(Qbasic)​

User Tim Stewart
by
2.3k points

1 Answer

9 votes
9 votes

Source Code:

total = 0

FOR x = 20 TO 50 STEP 2
total = total + x
NEXT x

PRINT "Total=";total

User Berenice
by
2.8k points