Use a one

dimensional array to solve the following problem: Read in 20 numbers, each
of which is between 10 and 100, inclusive. As each number is read, print it only if it is
not a duplicate
of a number already read. Use the smallest possible array to solve this problem

Reverend Jim commented: lazy -3

Recommended Answers

We don't do homework. We'll help you when you're stuck but you'll need to show some effort first.
If you are stuck, post up what code you have done and explain the problem you're having.

Jump to Post

All 2 Replies

We don't do homework. We'll help you when you're stuck but you'll need to show some effort first.
If you are stuck, post up what code you have done and explain the problem you're having.

I find it particularly annoying that not only do you expect us to do your homework for you but you can't even be bothered to ask. You just post the question and expect us to do the work for you. You get a downvote for your lack of effort.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.