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.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)   (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)   (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

RELATED QUESTIONS

Express the given sums using sigma notation for the following: a) 2+5+10+14+18 b)... (answered by stanbon,Edwin McCravy)
A cute otisis media, an infection of the middele ear, is a common childhood illness.... (answered by haileytucki,Alan3354)
1. An elementary teacher gathered the data in the performance of his 70 students in... (answered by ikleyn)
What is the sum of the expression?... (answered by Positive_EV)
A pharmacist working in Black lion Specialized Hospital wants to secure the availability... (answered by ikleyn)
The data for the two variables X and Y are given in the table below: X: 1.11, 0.00,... (answered by asinus)
The data for the two variables X and Y are given in the table below: X: 1.11, 0.00,... (answered by CPhill)
A pharmacist working in Black lion Specialized Hospital wants to secure the availability... (answered by ikleyn)
Weeks Unit dispensed 11 1 20 1 48 1 55 1 85 1 12 2 32 2 42 2 56 2 67 2 (answered by ikleyn)