fork download
  1. <?php
  2. $k=4;
  3. for($i=2;$i<=6;$i++){
  4. for($j=$i+$k;$j>=2;$j--){
  5. echo $j." ";
  6. }
  7. $k-=2;
  8. echo "\n";
  9. }
  10.  
  11. // your code goes here
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
6 5 4 3 2 
5 4 3 2 
4 3 2 
3 2 
2