Computer Science, asked by sidsam1751, 13 hours ago

Explain the concept of calculation in PHP

Answers

Answered by tarun12328
0

Answer:

PHP program to Calculate Percentage

php // defining function function cal_percentage($num_amount, $num_total) { $count1 = $num_amount / $num_total; $count2 = $count1 * 100; $count = number_format($count2, 0); return $count; } // calling function to calculate percentage echo "Percentage of 39 in 100 : ".

Explanation:

I hope it is helpful for you

Similar questions