Skip to content

Commit 66113c2

Browse files
committed
[NEW] Exercice 24
1 parent 5c72342 commit 66113c2

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Exercice_25/exercice25.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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);

Exercice_25/exercice25.pseudoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)