JavaScript (Smonkey 60.2.3) образец
while((num = readline()) != 42) {
print(num);
}
Doubtful Deer
while((num = readline()) != 42) {
print(num);
}