title: How to do user input in Crystal
body: <pre><code>puts "Input a number"
  A = gets.try(&amp;.to_i) || 0
  puts "Ok now another number"
  B = gets.try(&amp;.to_i) || 0
  
  def main 
      puts "Value of multiplication is #{A} * #{B}, Which equals = #{A * B}"
      puts "Value of addition is #{A} + #{B}, Which equals = #{A + B}"
      puts "Value of division is #{A} / #{B}, Which equals = #{A / B}"
      puts "Value of minus is #{A} - #{B}, Which equals = #{A - B}"
      puts "Value of modulus is #{A} % #{B}, Which equals = #{A % B}"
  end 
  
  main
  </code></pre>
  
  <p>I am wondering what the most simplest way to get user inputs from integers in Crystal would be? Similar to Ruby's gets.chomp.to_i</p>