πŸ“Š PHP
Q. what is the output of below program?
Code:
<?php
    function simple_interest ( $principal , $rate , $time){
        $result = $principal * $rate * $time / 100;
        echo $result;
        return $result;
    }
    simple_interest(2 , 2, 2)
  • (A) 8
  • (B) 80
  • (C) 0.08
  • (D) 0.008
πŸ’¬ Discuss
βœ… Correct Answer: (C) 0.08

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
149262
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate