User input/Text is part of Short Circuit's Console Program Basics selection.
Task
 
Input a string and the integer   75000   from the text console.

See also: User input/Graphical

print "Enter a string: "
s = gets
printf "Enter an integer: "
i = gets.to_i   # If string entered, will return zero
printf "Enter a real number: "
f = Float(gets) rescue nil   # converts a floating point number or returns nil
puts "String  = #{s}"
puts "Integer = #{i}"
puts "Float   = #{f}"