I'm new to ruby, and I'm trying to recreate a script I made in python, in ruby, to learn. So far, I feel like this is pretty simple, but the program simply will not run. I'm getting this error
"syntax error, unexpected end-of-input, expecting keyword_end"
I'm not sure why, I ended my loop with an end
This is the code
#ruby version of work script
a = 0
b = 0
c = 0
i = " "
puts "Hello, please input the 3 character code."
i = gets.chomp
while i != "END"
if i == "RA1"
a += 1
if i == "RS1"
b += 1
if i == "RF4"
c += 1
if i == "END"
print "Complete"
else
puts "Please enter the 3 character code"
end
print "RA1: " + "#{a}" + "RS1: " + "#{b}" + "RF4: " + "#{c}"`