Search found 2 matches

by buckyno2
Thu Jun 24, 2004 9:23 pm
Forum: QBasic / QuickBasic related
Topic: newbie programming class question
Replies: 5
Views: 1784

Re: newbie programming class question

Thanks buffoasys. I should have included the the input  command defining startnum as the first number of the range, lastnum as the second, and bottom as the divisor. My confusion is how to display the prime numbers it does find. The second (interior) loop does the division to determine whether ...
by buckyno2
Thu Jun 24, 2004 3:32 am
Forum: QBasic / QuickBasic related
Topic: newbie programming class question
Replies: 5
Views: 1784

newbie programming class question

My instructor wants us to write a program that will ask for a range of numbers and will generate all prime numbers within that range using WHILE loops. I understand about counters but don't know how to get out of two embedded loops (see beginning code below). Can anyone help?

cls
  &nbsp ...