Handling Multiple Inputs

How to process list of inputs and print them without giving a particular limit?

that can be handled this way : while(cin>>x){…do_your_work…}
this loop runs till there is input!