πŸ“Š PHP
Q. what is the output of below program?
Code:
<?php

for($i=0; $i<=5; $i++){
    $i = $i*2;
}

echo "$i";

?>
  • (A) 5
  • (B) 6
  • (C) 7
  • (D) 8
πŸ’¬ Discuss
βœ… Correct Answer: (C) 7

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
147
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate