Computer Science, asked by punamseal14, 4 months ago

Write a simple php program to compute the compound interest using the concept of function.​

Answers

Answered by Anonymous
1

<?php

// PHP program to enter P, T, R, and calculate Compound Interest

$p = 5;

$t = 7;

$r = 9;

$CI = NULL;

// p = principle

// t = time

// r = rate

// CI = compound interest

// Calculate compound interest

$CI = $p * (pow((1 + $r / 100), $t));

// Output

echo "Compound Interest = " . $CI;

?>

thankyou (*_*)...............

Similar questions