fork download
  1. <?php
  2. // Ejercicio 1 - Apartado A
  3. $NF=3;
  4. $NC=5;
  5.  
  6. // Recorremos la matriz mientras la creamos
  7. for($f=0;$f<$NF;$f++){
  8. for($c=0;$c<$NC;$c++){
  9. // Rellenamos la matriz:
  10. $matriz[$f][$c]=rand(0,9);
  11. // Imprimos la matriz por filas
  12. echo $matriz[$f][$c];
  13. }
  14. // Separamos las filas con un espacio
  15. echo " ";
  16. }
  17. ?>
Success #stdin #stdout 0.04s 25548KB
stdin
Standard input is empty
stdout
41422 14987 71666