-
Notifications
You must be signed in to change notification settings - Fork 0
Practice_Atcoeder Ruby_learning #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
gets.chomp.to_i method can't use four arithmetic operations(f.e add, subtract). so, if you want to use those, must change to gets.split.map(&:to_i) insted of gets.chomp.to_i. |
The method that name is case(when) can omitted in 1 line. case gets.chomp when "A" into puts gets.chomp == 'A'? 'B':'C' |
Array method can't use this method gets.chomp.split.map(&:to_i), but you can use this method get.split.map(&:to_i).←this method allows you to put params into each array. |
Different for in each in how to use these method. |
No description provided.
The text was updated successfully, but these errors were encountered: