You are on page 1of 1

11/17/22, 12:51 PM Arithmetic.

php

1 <?php
2 $x = 2;
3 $y= 3;
4
5 echo "The sum of x and y is : ". ($x+$y) ."<br />";
6 echo "The difference between x and y is : ". ($x-$y) ."<br />";
7 echo "Multiplication of x and y : ". ($x*$y) ."<br />";
8 echo "Division of x and y : ". ($x/$y) ."<br />";
9 echo "Modulus of x and y : " . ($x%$y) ."<br />";
10 ?>

localhost:4649/?mode=php 1/1

You might also like