Tell mistake in my code

I had tried to do the exact thing as in the video for floyd cycle detection but it is not showing any output

Kindly See to it

@Ramitgoel
The code seems to working and displayed the expected outputs. It printed “cycle” when I ran it as it is and “No Cycle” when I ran it after commenting out Line No. 55 . Both of these are correct. What issue are you facing ?