PHP Online Compiler
Example: How to Calculate Simple Interest with Example in PHP
C
C++
C#
Java
Python
PHP
main.php
STDIN
Run
<?php // How to Calculate Simple Interest with Example in PHP $p = 5; $t = 7; $r = 9; $SI = NULL; // $p=principal, $t=time, $r=rate, $SI=simple interest // It will calculate the simple interest $SI = ($p * $t * $r) / 100; // It will print the final output echo "Simple Interest = " . $SI; ?>
Output
Clear
ADVERTISEMENTS