int median (int numbers[], int length)
{
int i=0;
printf("Please enter up to 10 integers.\n");
printf("Enter any letter to terminate input before 10 entries.\n");
for(i=0; i<10; i++)
{
scanf("%d", &numbers[i]);
if(numbers[i]='ch')
break;
}
}
void sort(int numbers[], int length)
{
}
void swap (int* n1, int* n2)
{
int temp = *n1;
*n1 = *n2;
*n2 = temp;
}
int main()
{
int numbers[10]={0};
printf("This program determines the median of a list of numbers.\n\n");
return 0;
}
ITbull
0
Newbie Poster
Recommended Answers
Jump to PostNice looking code. Is there a point to your thread?
All 3 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ITbull
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.