InputA list of words separated by any number of spaces.OutputA horizontal ASCII art histogram, where the n-th line is composed by as many asterisks (*) as the n-th word is long.Example usageThe > signals user input, you should not input it when testing the program.> This is an example histogram of word length************************************> a aa aaa aaaa aaaaa***************> double space  example******************The codeputs gets.chomp.split.map{|word| '*' * word.length}.join(\n)
Print the length of words as input as a histogram with horizontal bars
strings;ruby;functional programming;ascii art