This file contains hidden or 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
| def number_asker | |
| p "Salut, bienvenue dans ma super pyramide ! Combien d'étages veux-tu ?" | |
| gets.chomp.to_i | |
| end | |
| def building_pyramid(floor) | |
| p 'Voici la pyramide :' | |
| floor.times { |j| puts '*' * (j + 1) } | |
| end |