Source Code:
(back to article)
<?php $scores = array(80, 90, 70, 85, 95); $average_score = array_sum($scores) / count($scores); echo "The average score of the students is: " . $average_score; ?>
Result:
Report an issue