I am using "Programmers Notepad" to write Ruby code. I tried following
code, but gets() is not waiting to accept the input. The whole program
execution finishes when I run the program.
========= CODE ==========
puts 'Enter your name'
name = gets()
puts 'Hello #{name}'
I am using "Programmers Notepad" to write Ruby code. I tried following
code, but gets() is not waiting to accept the input. The whole program
execution finishes when I run the program.
========= CODE ==========
puts 'Enter your name'
name = gets()
puts 'Hello #{name}'
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.