This is the problem I have
Read in 10 numbers, 10<numbers<100. As each number is read, print it only if it is not a duplicate of a number already read.
I did the first part but couldn't work out the second,where the duplicate is used.
I have some idea in my mind but can't think of how i can write a loop that compares the i'th number to all numbers (Except itself)
#include<stdio.h>
int main (void)
{
int numbers[10];
int i;
for (i=1;i<=10;i++)
{
printf("enter %d'th value \n",i);
scanf("%d",&numbers[i]);
while ((numbers[i]<10) || (numbers[i]>100))
{
printf("\nInvalid Number!\nEnter again\n");
scanf("%d",&numbers[i]);
}
}
fflush(stdin);
getchar ();
return 0;
}