Q. what is the output of below program?

Code:
<?php

for($i=0; $i<=5; $i++){
    if($i%2==0)
    echo "$i";
    
}

?>
  • (A) 24
  • (B) 024
  • (C) 01234
  • (D) 012345
πŸ’¬ Discuss
βœ… Correct Answer: (B) 024

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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