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

Post New Answer

More C Code Interview Questions

Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.

2 Answers  


int aaa() {printf(“Hi”);} int bbb(){printf(“hello”);} iny ccc(){printf(“bye”);} main() { int ( * ptr[3]) (); ptr[0] = aaa; ptr[1] = bbb; ptr[2] =ccc; ptr[2](); }

1 Answers  


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }

2 Answers  


to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD

6 Answers   Synergy,






Who could write how to find a prime number in dynamic array?

1 Answers  


void main() { int i=5; printf("%d",i+++++i); }

3 Answers  


Develop a routine to reflect an object about an arbitrarily selected plane

0 Answers  


how to return a multiple value from a function?

5 Answers   Wipro,


main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcat(a,b)); } a. Hello b. Hello World c. HelloWorld d. None of the above

3 Answers   HCL,


which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.

2 Answers  


What is "far" and "near" pointers in "c"...?

3 Answers  


Categories