Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

0 Answers  

#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }

3 Answers   Hexaware,

struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }

1 Answers  

how to concatenate the two strings

1 Answers  

Find your day from your DOB?

15 Answers   Accenture, Microsoft,

Write a program using one dimensional array to assign values and then display it on the screen. Use the formula a[i]=i*10 to assign value to an element.

1 Answers   Samar State University,

main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error

1 Answers   HCL,

main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 Answers  

void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(ā€œ%dā€,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(ā€œ%dā€,*cptr); }

1 Answers  

Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)

7 Answers   Microsoft,

how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!

8 Answers   GATE,

main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4

2 Answers   HCL,