Merge sorted linked lists


I am not getting it how to write the code basically I am not getting it how to take input twice and how to use n1 pl first tell me how to take n1 inputs and then n2 inputs?

@Aditiverma
Kindly refer to this code - https://ide.codingblocks.com/s/118871
Let me know if you have any doubts regarding it.