Life, the Universe, and Everything solution code example
Example: life the universe and everything solution c++
#include <iostream>
int main()
{
int input ;
while( std::cin >> input && input != 42 ) std::cout << '\t' << input << '\n' ;
while( std::cin >> input ) ;
}