Get confused!


#1



https://www.codecademy.com/courses/ruby-beginner-en-NFCZ7/0/4?curriculum_id=5059f8619189a5000201fbcb#


the no.1 is equalt to no.2the no.1 is more than no.2nil

It prints 2 branches instead of 1 and I wanna know how to input a "< br >" there between 2 sentences or something.
Thx in advance for help!


if 3<3
    print"the no.1 is less than no.2"
elsif
    print"the no.1 is equalt to no.2"
else
    print"the no.1 is more than no.2"
end


#2

You forgot to add a comparator (for example '3 is equal to 3') on elseif statment


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.