How to take multiple inputs before the final output

my code is running succesfully the problem is it is showing the output simultaneously i want to give all the inputs first and want the output together. for example in this code sample input is 3 then we have to give input of three strings firstand then want output but in my case it is not allowing me to give all the inputs

Hey @pulkitgupta622 You can give multiple inputs just type all the inputs which are expected without using ENTER and compiler will take it automatically

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.