actually di na mo kinanlan mag.sortsort pa...
heres the pseudocode...i'm not good in c because I am a java programmer but below should do the trick
Code:
int N; //the number of numbers to be inputed
int numOut[41]; //there are only 41 number from 10-50
int i; //iterations
//Ask the user how many numbers he wants to enter
printf("Please input the number of numbers you want to enter: ");
//get the number
scanf("%d", &N);
//initialze the array that will hold the numbers
int numIn[N];
//inform the user to input the numbers
printf("Pls. enter numbers from 10 to 50");
//get the numbers
for(i=0; i<N; i++)
{
scanf("%d", numIn[i]);
}
//initialize the array that will hold the number to be displayed
for(i=0; i<41; i++)
{
numOut[i] = 0;
}
//traverse numIn[] to look for valid inputs
//if input is valid, mark the array index by 1
for(i=0; i<N; i++)
{
if(numIn[i]>=10 && numIn[i]<=50)
{
numOut[numIn[i]-10] = 1;
}
}
//dispaly the numbers
for(i=0; i<41; i++)
{
if(numOut[i]==1)
{
printf("%d\n", &i+10);
}
}