Please see the homework policy:
The task that you describe is quite simple, as you yourself say. If you are a programming student, you shouldn't have much trouble getting started. Please post your code, and we will try to assist you if necessary.
You will probably need 2 variables, a DO...LOOP block, and an IF ... THEN EXIT DO among other things. See either the QBasic Help, or the QB64 wiki for help on specific keywords.
|Response Title||Author and Date|
|No EXIT DO needed... Just sayin'. :P||on Apr 11|