jakie8
09-14-2008, 03:44 PM
This is Java ,but maybe it is similar?
// This method returns true if the average of the three parameters is the difference between
// @param three and @param one; it returns false in all other cases.
public static boolean weirdAvg(int one, int two, int three)
{
boolean boo = one + two + three % 3 += three + one;
return boo;
}
The 5th line is incorrect somehow. Any ideas?
// This method returns true if the average of the three parameters is the difference between
// @param three and @param one; it returns false in all other cases.
public static boolean weirdAvg(int one, int two, int three)
{
boolean boo = one + two + three % 3 += three + one;
return boo;
}
The 5th line is incorrect somehow. Any ideas?