-
-
Save namncn/8f4f24093d367505c131879e6fb3b32a 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
def multiply_by_two (n = "không có giá trị cung cấp") | |
if (n.is_a? (Integer)) | |
n * 2 | |
khác | |
nâng ArgumentError.new ( "Xin vui lòng cung cấp một số hợp lệ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment