We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
int averege4( int a , int b , int c , int d ) { return ( averege3 ( a , b , c ) + d) / 2; }
int averege3( int a , int b , int c ) { return ( averege2 ( a , b ) + c) / 2; }
int averege2( int a , int b ) { return ( averege1 ( a ) + b) / 2; }
int averege1( int a ) { return ( 0 + a / 2 ); }
why do the result is wrong?
Interesting, what is your fixation with dividing by 2?
You need to understand some basic concepts of maths before trying programing.