-
-
Save mistyrinth/c21bf3e5a8d9920893bc7203d04a7387 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
# timesメソッド | |
3.times{ | |
print("繰り返します!\n") | |
} | |
# uptoメソッド | |
5.upto(9){|num| | |
print(num, "は四捨五入して10です\n") | |
} | |
# dowmtoメソッド | |
100.downto(97){|num| | |
print(num, "点はハイスコアです!!\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment