Last active
October 2, 2018 15:25
-
-
Save mathieubrunpicard/4a1bc48d68cb2a6bd80ff7c61802b60c to your computer and use it in GitHub Desktop.
Revisions
-
mathieubrunpicard revised this gist
Jul 4, 2018 . 1 changed file with 4 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,16 @@ 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 def perform building_pyramid(number_asker) end perform -
mathieubrunpicard revised this gist
Jul 3, 2018 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,18 @@ def number_asker p "Salut, bienvenue dans ma super pyramide ! Combien d'étages veux-tu ?" number = gets.chomp.to_i return number end def building_pyramid(floor) p "Voici la pyramide :" floor.times { |j| puts '*' * (j+1) } end def perform building_pyramid(number_asker) end perform -
mathieubrunpicard revised this gist
Jul 3, 2018 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ def number_asker end def building_pyramid(floor) p "Voici la pyramide :" floor.times { |j| puts '*' * (j+1) -
mathieubrunpicard created this gist
Jul 3, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ def number_asker p "Salut, bienvenue dans ma super pyramide ! Combien d'étages veux-tu ?" number = gets.chomp.to_i return number end def building_pyramid(floor) floor = floor p "Voici la pyramide :" floor.times { |j| puts '*' * (j+1) } end def perform building_pyramid(number_asker) end perform