Thread: C programming
View Single Post
Old 11-20-05, 08:31 PM   #1
Dr_s99
geForce 4 Ti 4600
 
Dr_s99's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 339
Default C programming

hello,
:P
I need hellp with this question!
its a easy question except my brain has stopped working after the math mid-term!

The Question is:
Use a single-subscripted 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. Provide for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.

Thank you,
__________________
System info(s):
-----
Gaming/Work System :
ASUS G1
RAM: 2.0Gb
Hard drive: 160 Gb
VIDEO CARD: NVIDIA 7700Go 512Mb
OS: Windows Vista Home Pre.
----------------------------
Server/Work system:
CPU: AMD Athlon XP 2400+
RAM: 1.0Gb
Hard drive: 30 IDE,120 IDE
VIDEO CARD: Nvidia Geforce 4 Ti 4600
OS: OpenSuse 10.2, Windows 2003
Dr_s99 is offline