TEST - Life, the Universe, and Everything
Your program is to use the brute-force 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.
Input: 1 2 88 42 99 Output: 1 2 88
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.
|Added by:||Michał Małafiejski|
|Cluster:||Cube (Intel Pentium G860 3GHz)|
|Languages:||All except: SCM chicken|
|Resource:||Douglas Adams, The Hitchhiker's Guide to the Galaxy|
I'm from Poland and I find this offensive because you don't know whot pierogies are
where is life????
La Van Tien:
Just read the problem carefully and you will find out.
it is showing compilation error bt my code is absolutely running grt in codeblocks
I have used C & C++. I got error in including header files. But i have experience in programming of c,c++ using Turbo C,C++. Please suggest me the way to get learn to program here in C,C++
how many inputs we have to take????
manisha chejara :
I am getting run time error which is not coming in my linux,where is it ,i am not getting
i have written perfect code in c++ , but it shows that iostream cant be includedLast edit: 2015-02-28 16:21:31