Follow Our FB Page << CircleMedia.in >> 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

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

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

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); }

how to concatenate the two strings

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.

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

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

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

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)

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

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

Categories