Billig Smålån | Halvin Sähkö | Kredittkort Test 2017 | Strømpriser | Innbruddsalarm Pris | Sykkelforsikring | Billigste Mobilabonnement | Luft til Luft Varmpepumpe
Php

PHP Arithmetic Operator Tutorial

PHP programming through a wide variety of mathematical operations such as addition, subtraction, multiplication, division, etc., are used to perform arithmetician operator. For example, – $ a $ a’s by Karnataka (Negation), $ a + $ b Karaganda by (Addition), $ a – $ b Karaganda by (Subtraction), $ a * $ b guarantor by (Multiplication), $ a / $ b by subdivision (Division), $ a% $ b by the modulus (modulus) is expressed.

Practice Project

<html>
<head>
<title> www.trickbd.com.bd</title>
<style>
body{background: #00cc99 ; color: #000000;}
h2{color: #663300;}
h1{color: #CC00CC;}
</style>

</head>
<body>
<?php
$a=20;
$b=10;
$c=$a+$b;
$d=$a-$b;
$e=$a*$b;
$f=$a/$b;
$x=-$a;
$p=25;
$q=10;
$r=$p%$q;
echo “A = “.$a;
echo “<br />”;
echo “B =”.$b;
echo “<br />”;
echo ” A + B = C =”.$c;
echo “<br />”;
echo ” A – B = D =”.$d;
echo “<br />”;
echo ” A * B = E =”.$e;
echo “<br />”;
echo ” A / B = F =”.$f;
echo “<br />”;
echo ” X = – A = “.$x;
echo “<br />”;
echo “P = “.$a;
echo “<br />”;
echo “Q =”.$b;
echo “<br />”;
echo ” P % Q = R =”.$r;

?>

</body>

</html>

  • At the top of the program, $ c = $ a + $ b; Addition of the yogakarana or shown.
  • Program $ d = $ a- $ b; Subtraction of the biyogakarana or shown.
  • Program $ e = $ a * $ b; Multiplication of the gunakarana or shown.
  • Program $ f = $ a / $ b; The subdivision or Division has been shown.
  • Program $ r = $ p% $ q; Modulus has shown that the modulus. PHP is the modulus for the remainder on. The $ p = 25 and the remainder will be $ q = 10 5.

Comments

comments

About the author

Toriqul Islam Tusher

বলার মত কিছু নাই!

Leave a Comment