Taking input from a linked list

Please tell me What changes I have to do…

@G_rahil
Line 32
while(tail->next!=NULL){
Do this

If your doubt is resolved please mark it as closed.