- Sep 3, 2001
- 61
- 0
- 0
I need help with a qbasic probelm:
write a program that prompts for and reads numbers one at a time until a negative value is entered. After each number is read, indicate if the number is a duplicate of a number previously read. A maxium of 12 values will be entered.
this program seemed pretty easy at first, but I don't know how to keep track of all the previous numbers with the input. I know i have to use arrays, and it would be simple if it just read from a data statement, but it uses user imput. help please...
write a program that prompts for and reads numbers one at a time until a negative value is entered. After each number is read, indicate if the number is a duplicate of a number previously read. A maxium of 12 values will be entered.
this program seemed pretty easy at first, but I don't know how to keep track of all the previous numbers with the input. I know i have to use arrays, and it would be simple if it just read from a data statement, but it uses user imput. help please...