Circular linked list inputting

How do i input a linked list containing a loop? If we input normally then we just attach every incoming node at the end of the linked list…(circular linked list problem)

in this question
you have to take input till nos are not repeating
when no start repeating then note that no

and now point last element of list to that no(from where list starts repeating)

you can take help form Reference Code iff needed

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course