Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,9 @@
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}"