Home / PHP File

PHP File

[insert_php] $N=5;
$a1=2;$a2=4;$a3=6;$a4=8;$a5=10;
//Harmonic mean=$N/(1/$a1+1/$a2+1/$a3+1/$a4+……………..+1/an);
$Harmonic_Mean= $N/(1/$a1+1/$a2+1/$a3+1/$a4+1/$a5);
echo “Harmonic Mean : “.$Harmonic_Mean;
[/insert_php]