## Write PHP program to find an average of two numbers

<!-- Write A Programme To Find Average Value Of Given Number -->

<html>
<body>

<?php

$n1 = 15;$n2 = 30;
$avg = ($n1 + $n2) / 2; echo "The Average of Given Number is : ",$avg;

?>
</body>
</html>

Output:

The Average of Given Number is : 22.5

≪ Previous | Next ≫