Skip to content

Instantly share code, notes, and snippets.

@shamritskiy3468
Created December 16, 2018 21:21
Show Gist options
  • Save shamritskiy3468/56910b215018e000f73506121f22b038 to your computer and use it in GitHub Desktop.
Save shamritskiy3468/56910b215018e000f73506121f22b038 to your computer and use it in GitHub Desktop.
Task8
def find_words_number(string)
string.split.size
end
puts "Enter Your string:"
string = gets.chomp
puts "Words Number ---> #{find_words_number(string)}"
@aya-soft
Copy link

🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment