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?
averege is the name i use for the function.
If every citizen of Farawayistan wrote perfect English nobody would have thought averege ment average.
i will put in your comments to prove i got no help. because you people did not help AT ALL! so, go ahead and stamp your little feet in the floor and, next time, use a name that does not seem like a misspelling of a common term.
Erik
yes sir.
next time i will be sure to use the names idoit and stoopid and bighed :)
but i dont stamp my feet. i am happy because i have good working code.