Created
December 16, 2018 21:21
-
-
Save shamritskiy3468/56910b215018e000f73506121f22b038 to your computer and use it in GitHub Desktop.
Task8
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 find_words_number(string) | |
string.split.size | |
end | |
puts "Enter Your string:" | |
string = gets.chomp | |
puts "Words Number ---> #{find_words_number(string)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🥇