In a gymnastic competition, scoring is based on the average
of all scores given by the judges excluding the maximum and
minimum scores.
Let the user input the number of judges, after that, input
the scores from the judges.
Output the average score.
Note: In case, more than two judges give the same score and
it happens that score is the maximum or minimum then just
eliminate two scores.
For example, if the number of judges is 5 and all of them
give 10 points each. Then the maximum and minimum score is
10. So the computation would be 10+10+10, this time.
The output should be 10 because 30/3 is 10.
No Answer is Posted For this Question
Be the First to Post Answer
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
C program to print magic square of order n where n > 3 and n is odd
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
How we print the table of 3 using for loop in c programing?
Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..
write a c-program to display the time using FOR loop
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }