Rubi
Christmas="beer "
NewYear="more beer"
if Christmas + NewYear=="beer more beer"
print "festive hangover"
end
Objective-C
NSString *Christmas=@"beer ";
NSString *NewYear=@"more beer";
if ([[NSString stringWithFormat:@"%@%@",Christmas,NewYear] isEqualToString:@"beer more beer"]) NSLog(@"%@", @"festive hangover");
Pitão
Christmas="beer "
NewYear="more beer"
if Christmas + NewYear=="beer more beer":
print "festive hangover"
JavaScript
var Xmas= "beer ";
var NewYear = "more beer";
if (Xmas+NewYear==="beer more beer")
document.write("festive hangover");
PHP
$Christmas = "beer ";
$NewYear = "even more beer";
if ($Christmas.$NewYear==="beer even more beer") echo "festive hangover";
Por favor, adicione quantos novos idiomas você quiser aos comentários