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 x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5
How to access command-line arguments?
What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }
source code for delete data in array for c
Cau u say the output....?
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
How to count a sum, when the numbers are read from stdin and stored into a structure?
What is data _null_? ,Explain with code when u need to use it in data step programming ?
#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };