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
3 Respostas
+ 5
indentation error
0
how do i correct it, Meharban?
0
c is treated as a string there
try using:
if c.to_i == a