File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ /****************************************** EXERCICE 25 *******************************************/
2+
3+ var readline = require ( "readline-sync" ) ;
4+
5+ var taille = readline . questionInt ( "Quelle taille voulez-vous ? " ) ;
6+
7+ var ligne = "***************" ;
8+ console . log ( ligne ) ;
9+
10+ for ( var cpt = 1 ; cpt <= taille - 2 ; cpt ++ ) {
11+ var hauteur = "** **" ;
12+ console . log ( hauteur ) ;
13+ }
14+
15+ console . log ( ligne ) ;
Original file line number Diff line number Diff line change 1+ /****************************************** EXERCICE 25 *******************************************/
2+
3+ ALGORITHME main
4+ VARIABLES
5+ ligne, hauteur : CHAINE DE CARACTERE
6+ taille : ENTIER
7+ DÉBUT
8+ AFFICHER "Quelle taille voulez-vous ? "
9+ SAISIR taille
10+
11+ ligne → "***************"
12+ AFFICHER ligne
13+
14+ POUR cpt ALLANT de 1 À taille-2 PAR PAS DE 1 FAIRE
15+ hauteur → "** **"
16+ AFFICHER hauteur
17+ FINPOUR
18+
19+ AFFICHER ligne
20+ FIN
You can’t perform that action at this time.
0 commit comments