0

this does not give output when i enter 7, why?

a = 7 c = gets.chomp if c == a puts"here is the list of hottie girls" end

18th Apr 2017, 7:31 AM
Kelvine De Danielo
Kelvine De Danielo - avatar
3 Respostas
+ 5
indentation error
18th Apr 2017, 7:45 AM
Meharban Singh
Meharban Singh - avatar
0
how do i correct it, Meharban?
18th Apr 2017, 7:49 AM
Kelvine De Danielo
Kelvine De Danielo - avatar
0
c is treated as a string there try using: if c.to_i == a
18th Apr 2017, 11:34 AM
spcan
spcan - avatar