Showing posts with label multification of two numbers in php. Show all posts
Showing posts with label multification of two numbers in php. Show all posts

Saturday, 29 June 2013

Arithametic operations in php

<html>
<head><title>arthematic operators</title>
</head>
<body>
<?php
$i=12;
$j=4;

$add=$i+$j;
$sub=$i-$j;
$mul=$i*$j*$k;
echo "Addition of i=".$i." " ."and j=".$j." "." :"." "."i+j=".$add."<br/>";

echo "Substraction of i and j :"." ".$sub."<br/>";

echo "Multification of i and j :"." ".$mul."<br/>";


?>
</body>
</html>