Monday, 4 June 2018

Airthmetic Operator in PHP



<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Airthmatic operator</title>

</head>



<body>



<?php

$a=10;

$b=5;



echo "<h1>Addtion </h1>";

echo "a + b = ".($a+$b);



echo "<h1>Subtraction </h1>";

echo "a - b = ".($a-$b);



echo "<h1>Multiplication </h1>";

echo "a * b = ".($a*$b);



echo "<h1>Division </h1>";

echo "a / b = ".($a/$b);



echo "<h1>Modulus </h1>";

echo "a % b = ".($a%$b);



echo "<h1>Exponent </h1>";

//echo "a ^ b = ".($a**$b);

echo "a ^ b = ".pow($a,$b);

























?>













</body>

</html>

No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...