Answer to Question #567 in Java | JSP | JSF for April

Question #567
Write the signature for a method named average that has two parameters, both of type int, and returns an int value.
1
Expert's answer
2010-08-22T14:38:04-0400
int average(int a, int b)
{
return (a+b) / 2;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS