akash umate


{ City } wardha
< Country > india
* Profession * student
User No # 118827
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 2
Users Marked my Answers as Wrong # 1
Questions / { akash umate }
Questions Answers Category Views Company eMail




Answers / { akash umate }

Question { 8090 }

Write a PHP code to print following number pattern:
123
456
789


Answer


$i=1;

while($i<=3)
{
echo $i;
$i++;
}
echo "
" ;
$j=$i;
while($j<=6)
{
echo $j;
$j++;
}
echo "
" ;

$k=$j;
while ($k<=9)
{
echo $k;
$k++;
}
echo "
" ;

? >

Is This Answer Correct ?    2 Yes 1 No