$a=array(110,20,130,100,2);
$avg=0;
for($i=0;$i<count($a)-1;$i++){
$avg+=$a[$i];
}
$totalavg=$avg/count($a);
echo $totalavg;
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.