Sample Input o
5
Sample Output o
01 02 03 04 05 26 27 28 29 30
06 07 08 09 22 23 24 25
10 11 12 19 20 21
13 14 17 18
15 16
This is a Pattern program So Try accordingly
Answers
Answered by
0
Explanation:
<?php
for($x=1; $x<=10; $x++)
{
if($x< 10)
{
echo "$x-";
}
else
{
echo "$x"."\n";
}
}
?>.
this is your answer.
.
.
.
.
.
Similar questions