Wednesday 26 November 2014

Numbers in Php

Structure of the Problem Requirements 

In this programme we will tells about Number in Php. How we can declare and initialize number in php. In our example we just initialize two numbers. and then find the sum of both two numbers and display them in Screen. Here is the source code of this Programmed from where you can understand better.  

SOURCE CODE


<html>
<title> PHP Number Demo </title>
<body>
<?php 
echo "<br />";
   echo "<br />";
$num_1 = 786;
$num_2 = 786;
echo "Number _ 1 : ";
echo $num_1;
echo "<br />";
echo "Number _ 2 : ";
echo $num_2;
echo "<br />";
?>
<?php
echo "<br />";
echo "<br />";
?>
<?php 
$num_3 = 0;
$num_3 = $num_1 + $num_2;
echo "Sum  : ";
echo $num_3;
echo "<br />";
echo "<br />";
?>
<?php
echo "<br />";
echo "<br />";
?>
</body>

</html>

OUTPUT OF THE PROGRAM


Numbers
Numbers in php


Share it Please
asad

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.

0 comments:

Post a Comment