Part 1
1

Boucles exercices : Exercice PHP n°1

The goal of the exercise is to apply what you have learned using the examples.

Statement

Ecrivez une boucle qui affiche ce qui est demandé :

 

Enter your response
$colonnes = 10; $lignes = 7; for( /* trou/ */ /* /trou */) { for(/* trou/ */ /* /trou */) { print(/* trou/ */ /* /trou */); } print('<br>'); }
Result to obtain
0000000000
1111111111
2222222222
3333333333
4444444444
5555555555
6666666666
0000000000<br>1111111111<br>2222222222<br>3333333333<br>4444444444<br>5555555555<br>6666666666<br>

Execution in 0.0005s