Structure of the Problem Requirements
In this programme we will tells about Number increment and decrements in php. As in our Last programme we tell you about numbers in php. but in this example we tell you about increment and decrements in numbers. 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 "First Increment Number 1 : : ";
$num_1++;
echo $num_1;
echo "<br />";
echo "First Increment Number 1 : : ";
$num_1++;
echo $num_1;
echo "<br />";
echo "First Increment Number 1 : : ";
$num_1++;
echo $num_1;
echo "<br />";
echo "<br />";
?>
<?php
echo "<br />";
echo "First Decrement Number 1 : : ";
$num_1--;
echo $num_1;
echo "<br />";
echo "First Decrement Number 1 : : ";
$num_1--;
echo $num_1;
echo "<br />";
echo "First Decrement Number 1 : : ";
$num_1--;
echo $num_1;
?>
</body>
</html>
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