DAY 2 PHP PROGRAMMING

http://php.flashwebhost.com/tom/day_2_variables_6.php

Code:
<?php


$computerPrice = '20000' ;
$printerPrice = '5000' ;
$discount = 0.1; // 10% discount.


echo ' Total cost = Rs: ' . ($computerPrice+$printerPrice) . ' /- ' ;
echo '<br>' ; 
echo ' Price after discount = Rs: ' . ( ($computerPrice + $printerPrice) -  (($computerPrice + $printerPrice) *  $discount)) . '/-' ;