Sum Subtract Multiply & Divide Formula
Today I will show you how to php works with Sum Subtract Multiply and Divide Formula<html>
<head>
<title>This is test site.</title>
</head>
<body>
<?php
// This is sum function
$shorif=5;
$it=6;
$sum=$shorif+$it;
echo 'Total Sum is: '.$sum.'<br>';
// This is subtract function
$khondakar =8;
$rahman = 4;
$minus = $khondakar -$rahman;
echo 'This is minus formula: '.$minus.'<br>';
// This is multiplication function
$a = 5;
$b = 6;
$multiplication=$a*$b;
echo ' Multiplication ='.$multiplication.'<br>';
// Now I will show you how to Divide
$x = 10;
$y = 5;
$devide=$x/$y;
echo 'Devidation = ' .$devide;
?>
</body>
</html>
The result of above code is :
Total Sum is: 11
This is minus formula: 4
Multiplication =30
Devidation = 2
No comments:
Post a Comment