Addition of two numbers

Program Description

This programs takes two number and display their sum.

Program
/*******************************************************************
*
* code.cheraus.com
*
*  A simple program for addition of two numbers in PHP. 
*
********************************************************************/

<?php

$num1 = 10;

$num2 = 20;

$sum = $num1 + $num2;

echo $sum;
?>

Output

30

Comments
comments powered by Disqus