title: A little stumped with some code for class
body: <p>I'm a little stumped with an assignment for class. So I'm supposed to take four user inputs for different hotels and have different prices. I'm having trouble with some of my If statements. When I test my program say I put "A" I get an error saying uninitialized constant C (NameError). I'm just looking to see if the user puts A,B,C, or D and then go on to do the rest of the if statement. I'm wondering if I did something wrong with my if statements. Here is my code.</p>
  
  <pre><code>choice1 = gets.chomp.capitalize.to_s
  
  if choice1 == C then 
    puts "For how many nights?"
    nightsC == gets.chomp.to_i
  
    if nightsC == 3
      priceC == 700
      nightsT + nightsC
    else
      priceC == nightsC * 300
    end
  end
  </code></pre>
  
  <p>Here's the Pastebin <a href="https://pastebin.com/9c5ezuab" rel="nofollow noreferrer">https://pastebin.com/9c5ezuab</a></p>