y = "Ruby\riscool"
x = "Ruby\niscool"
if x == y
puts x
puts y
else
print 'Not equal!'
end
The newline and carriage return character both give the same output. However, the code above is false, and triggers the else statement. I don't understand how I can get the same output, but for both to be unequal? Can someone give and example and explain the difference between the two whitespace characters? Thanks!