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
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.
do while if input is 42, break.
@pranto09 Spoj community warns you to first learn the spelling of solved.
How to sloved it
can somne one help me with the answer
can anyone tell me plz how to know the number of input ?
can anyone tell me plz where the loop will stop
For a beginner like me,it's very difficult program to start with.
You need to use the concept of data structures in order to make a dynamic memory which stores the numbers and increases it's size as you keep on typing numbers(not greater than 99 and not equal to 42) and once you you type a number above 99 or 42 you need to display all previous numbers which you stored in your dynamic memory
my program was executing at run time. after submitting it wasshowing error my program hzs executing in ideone online editor also. can anyone help.
|Cluster:||Cube (Intel G860)|
|Resource:||Douglas Adams, The Hitchhiker's Guide to the Galaxy|