SOLUTION: Print the given question in qbasic using for next 1.100, 98, 95, 91, 86 2.5, 25, 125 3.1, 2, 4, 7, 11

Algebra ->  Customizable Word Problem Solvers  -> Numbers -> SOLUTION: Print the given question in qbasic using for next 1.100, 98, 95, 91, 86 2.5, 25, 125 3.1, 2, 4, 7, 11      Log On

Ad: Over 600 Algebra Word Problems at edhelper.com


   



Question 891590: Print the given question in qbasic using for next
1.100, 98, 95, 91, 86
2.5, 25, 125
3.1, 2, 4, 7, 11

Found 2 solutions by josgarithmetic, Edwin McCravy:
Answer by josgarithmetic(39617) About Me  (Show Source):
You can put this solution on YOUR website!
That seems to be three lists of numbers. Are you asking for a program to simply print the items in the a list?

Here is something in BASIC but NOT qbasic:

------------------------------------
FOR v=1 to 5
read s
print s
NEXT

DATA 100,98,95,91,86

END
-------------------------------------

Answer by Edwin McCravy(20055) About Me  (Show Source):
You can put this solution on YOUR website!
b = 100
print 1;".";b;", ";
for c = 2 to 5
b = b-c
print b;
if c<5 then print ", "; else print " "
next c


print 2;".";
for c = 1 to 3
print 5^c;
if c<3 then print ", "; else print " "
next c

b = 1
print 3;".";b;", ";
for c = 1 to 4
b = b+c
print b;
if c<4 then print ", "; else print " "
next c

'Edwin