hi im new here and still a beginner in C. i need an answer to this problem and hopefully u can help me in this.
we have this challenge asked by an instructor to create an array program that will input integers and if you input an integer it must have no same input value with other array index and will not accept it. therefore it is unique. example if i input 1 in array[0], array[0] will only have the integer 1 on it and no other.
this is all what ive come up with
[CODE=c]void unique (int la[], int n)
{
int i;
for(i=0;i<n;i++ )
{
scanf("%d", &la[i]);
}
}[/CODE]
cant seem to solve the unique part T_T. hope u can help me solve it ^_^
we have this challenge asked by an instructor to create an array program that will input integers and if you input an integer it must have no same input value with other array index and will not accept it. therefore it is unique. example if i input 1 in array[0], array[0] will only have the integer 1 on it and no other.
this is all what ive come up with
[CODE=c]void unique (int la[], int n)
{
int i;
for(i=0;i<n;i++ )
{
scanf("%d", &la[i]);
}
}[/CODE]
cant seem to solve the unique part T_T. hope u can help me solve it ^_^
Comment