static float avg(float a, float b) { ret (a+b)/2; } static double avg(doublea, double b) { ret (a+b)/2; }