No of inputs not stated?

The is no constraints regarding the no of inputs to be done,
How many times do I run a loop to push the value;
Or is there any other way?

just take a single string as input and do computations on that only…
string str;
cin>>str;
just do this for input…

got it, done, thanks for ur help

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.