Created
June 7, 2017 20:54
-
-
Save anonymous/67b61c9f1525985e5cf4dc666be4982a to your computer and use it in GitHub Desktop.
Length of interpolated string
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
print "Enter a word: " | |
first = gets.chomp | |
print "Enter a second word: " | |
second = gets.chomp | |
third = puts "First was #{first} and second was #{second}." | |
print third | |
fourth = third.length | |
print fourth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment