डाउनलोड पी.डी.एफ. ई-बुक्स
PHP - Arithmetic Operators

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

$var1 = 10;
$var2 = 2;

$var3 = $var1 + $var2 ;
echo "Addition of ".$var1." and ".$var2." is ".$var3;
echo "
"; $var3 = $var1 - $var2 ; echo "Subtraction of ".$var1." and ".$var2." is ".$var3; echo "
"; $var3 = $var1 * $var2 ; echo "Multiplication of ".$var1." and ".$var2." is ".$var3; echo "
"; $var3 = $var1 / $var2 ; echo "Division of ".$var1." and ".$var2." is ".$var3; echo "
"; $var3 = $var1 % $var2 ; echo "Remainder of ".$var1." and ".$var2." is ".$var3; echo "
";

आउटपुट :

Addition of 10 and 2 is 12
Subtraction of 10 and 2 is 8
Multiplication of 10 and 2 is 20
Division of 10 and 2 is 5
Remainder of 10 and 2 is 0