How to take input in the same line for strings
Doubt on strings
int a[n];
for(int i = 0 ;i < n ; i++){
cin >> a[i];
}
for taking input in terminal u can simply press enter after entering a number
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.