TEST  Life, the Universe, and Everything
Your program is to use the bruteforce approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits.
Example
Input: 1 2 88 42 99 Output: 1 2 88
Information
If you have some troubles with your code, you can take a look in the forum, you'll find the answer, only for this problem, in various languages.
hide comments
redho_am12:
20161021 10:30:33
Anyone know , how to create "while looping " statement to odd or even in python?? 

Naveen Reddy Thumma:
20161013 06:34:04
i am getting runtime error even though my code is correct


techkids:
20161010 20:56:42
Not clear. Yes, my code seems logical and it works. But it's a wrong answer. Damn


rishabhs_17:
20161010 13:11:27
question is wrong


rishabhs_17:
20161010 12:59:52
has anyone solved it yet...


rishabhs_17:
20161010 12:59:36
this question is ridiculus


fotisj:
20161009 17:07:39
Guys, the definition of the problem is extremely sloppy. What is meant AFAIK (at least the solution to this problem was accepted): Input and output are happening on the commandline. Let the user enter a number. If the number is not "42", show the number to the user. Let him/her enter another number. If the entered number is 42, then stop. 

rashi_96:
20161005 22:12:57
How many inputs can the user give? 

codeashish912:
20161002 15:47:05
The given example is so wrong! 

balaz42:
20161001 00:51:18
If number is 42, so the program ended. 
Added by:  mima 
Date:  20040501 
Time limit:  10s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All 
Resource:  Douglas Adams, The Hitchhiker's Guide to the Galaxy 