The code is we have to print the inputs until we got the value 42. The time we got this number(42) we must stop taking inputs.
The Code i have written is as shown Below (Python).
while (True):
n=int(input())
if n!=42:
print(n)
else:
break
problem Link is here: CodeChef: Practical coding for everyone