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
#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above
main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 Answers Mentor Graphics, Microsoft,
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"
#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }