|
Do Loop
Oct 21, 2018 3:06:35 GMT
via mobile
Post by donnak on Oct 21, 2018 3:06:35 GMT
Hello,
I’m new to this program and I’m supposed to write a code for a DO loop and I’m having issues getting the Count to work. Any advice would be helpful!
Example: DO Ask how many problems here FOR ‘Generate Random Numbers here ‘Calculate Correct Answer here
Thank you,
Donna
|
|
|
Post by tsh73 on Oct 21, 2018 8:56:31 GMT
DO and FOR are quite different beasts First, are you really using Just BASIC? Second, is it an assignment? could you copy your problem assignment exactly, word-by-word? simple DO WHILE loop
input "How many numbers?";n i=0 do while i<n i=i+1 print i loop
simple FOR loop
input "How many numbers?";n for i=1 to n print i next
|
|