How to take input

in current problem we are calling function one by one what if I have to create a linked list with more inputs and not to call a function one by one

hello @adarshsingh2k
u can use while/for loop to create link list.

for (i=1;i<=no of time;i++){
cin>>datal
root=insert(root,data);

}

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.