Search found 2 matches
- Thu Jun 24, 2004 9:23 pm
- Forum: QBasic / QuickBasic related
- Topic: newbie programming class question
- Replies: 5
- Views: 860
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 ...
- Thu Jun 24, 2004 3:32 am
- Forum: QBasic / QuickBasic related
- Topic: newbie programming class question
- Replies: 5
- Views: 860
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  ...