PHP Program to add two numbers
Program
<?php
$a = 20.3;
$b = 12.45;
$sum = $a + $b;
echo "Sum of " . $a . " and " . $b . " = ". $sum;
?>
Output
Sum of 20.3 and 12.45 = 32.75
Program
<?php
$a = 20.3;
$b = 12.45;
$sum = $a + $b;
echo "Sum of " . $a . " and " . $b . " = ". $sum;
?>
Output
Sum of 20.3 and 12.45 = 32.75