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
In case of any problems 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
buyn_erden03:
20190917 08:51:57
BUUNAA 

ajay1297:
20190914 09:27:38
How to track the end of stream of numbers ? 

chetansoni7330:
20190909 22:13:49
yes infinite loop used. 

priyansh31:
20190908 09:24:11
Okay, I don't understand why people are using arrays and stuff for this very, very simply question. Here is all you have to do (I'm explaining the entire algorithm, so don't read ahead if you want to arrive at the answer yourself).


mohit_d12:
20190907 14:11:53
the sample input values dont stop taking input after encountering 42 so we need to ask user how many numbers he want to enter ????/


vj_vijay99:
20190831 08:34:00
how should I store the input so that I will compare it with 42,as we can't use array?


mannugaddhyan:
20190828 17:47:44
how to take input ??help me out 

sudo65:
20190828 15:44:58
Do I also have to submit my data.in and data.out files? because it tells me "Time limit exceeded". 

divine_rythm:
20190824 07:56:47
how to give input?


parthwadhawan:
20190821 19:25:30
Is the input given at once or do we give the input one by one

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 