Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class String
- def initial
- self [0.3]
- end
- end
- loop do
- puts "\n enter a string value"
- string = gets.chomp
- break if string == "exit"
- puts "\n enter a non negative integer"
- value = gets.chomp
- break if string == "exit"
- puts "your response is: #{string.initial * 3}"
- end
- puts "thank you for using this program – William Woodrum"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement