Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def example(x,y)
- puts "X:#{x},Y:#{y}"
- if ( x == 0 ) then
- puts "Its true"
- elsif (x == 1)
- puts "Its not true"
- puts "it certainly isn't"
- if (y == 0) then
- puts "i'm the nested if"
- end
- else
- puts "i made it to the default case"
- puts "freedom"
- end
- end
- example(0,0)
- example(1,0)
- example(1,1)
- example(2,2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement