This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

averege

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?

Parents
  • why did you assume i needed average. i did not say average anywhere. i said averege everywhere!

    and the result was wrong. i got error. error is not right. it is wrong.

    and i did make a program called main. it had a function called main() in it.

    i think i will now get 100% for my assignment. i will put in your comments to prove i got no help. because you people did not help AT ALL!

Reply
  • why did you assume i needed average. i did not say average anywhere. i said averege everywhere!

    and the result was wrong. i got error. error is not right. it is wrong.

    and i did make a program called main. it had a function called main() in it.

    i think i will now get 100% for my assignment. i will put in your comments to prove i got no help. because you people did not help AT ALL!

Children