A
Q. what is the output of below program?
Code:
<?php
$numb = 0;
while ( $numb <= 10 ){
if ($numb % 2 == 0){
echo "{$numb} Even . ";
}else{
echo "{$numb} Odd . ";
}
$numb++;
}
?>
$numb = 0;
while ( $numb <= 10 ){
if ($numb % 2 == 0){
echo "{$numb} Even . ";
}else{
echo "{$numb} Odd . ";
}
$numb++;
}
?>
- Correct Answer - Option(B)
- Views: 11
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.