Home | Computer Science

Write a programmer using echo & $

<html>
<body>
<?php
$a=1;
$b=5;
$c=$a+$b;
echo $c;
?>
     </html>
Output:-
6

Write a programme using  operators
<html>
<body>
<?php
$a=9;
$b=2;
$c=$a+$b;
$d=5;
$e=2;
$f=$d-$e;
$g=7;
$h=2;
$i=$g*$h;
$j=1;
$k=2;
$l=$j/$k;
echo $c;
echo "<br>";

echo $f;
echo "<br>";


echo $i;

echo "<br>";


echo $l;
?>
</body>
</html>

output:-
11
3
14
0.5