What should I do to remove last 0 from the linked list?
Linked list insertion problem
@Shashank-Shekhar-2351214838461151
The actual problem here is your linked list contain an extra node at the end. To remove this extra node what you can do is first take one input x outside while loop and then cut line 16 to 18 and paste it just after line temp = newnode