All pastes #930473 Raw Edit

Miscellany

public php v1 · immutable
·published 2008-03-06 16:52 UTC
rendered paste body
//1st implementationpublic function out_av($v1, v2){    return 'The average of'.$v1.' and '.$v2.'is: '.calc_av($v1,$v2)}public function calc_av($v1, v2){    return ($v1+$v2)/2}//2st implementationpublic function out_av($v1, v2){    return 'The average of'.$v1.' and '.$v2.'is: '.($v1+$v2)/2}