Created
August 1, 2016 20:45
-
-
Save rxlabz/99408a123e1c532d14aed4cd1ef4279b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pyramide diese | |
var compteur = 0; | |
var sortie = ''; | |
while( compteur < 10 ){ | |
sortie += '#'; | |
console.log(sortie); | |
compteur++; | |
} | |
// pyramide chiffres | |
var compteur2 = 0; | |
var sortie2 = ''; | |
while( compteur2 < 10 ){ | |
compteur2++; | |
sortie2 += compteur2; | |
console.log(sortie2); | |
} | |
// pyramide lettre | |
var lettres = 'abcdefghijklmnopqrstuvwxyz'; | |
var compteur3 = 0; | |
var sortie3 = ''; | |
while(compteur3<lettres.length){ | |
sortie3 += lettres[compteur3]; | |
console.log(sortie3); | |
compteur3++; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment