scanf()
printf()
for
while
if
else
You needn't worry much about why Floyd's method works; instead concentrate your efforts on implementing the algorithm.
trace.c
cycle.c
readme.txt
Here is a readme file template to get you started.