Program

Write a complete C program that finds and lists each 4-digit postive integer, X, that has the strange property that X to any positive power will end in those same 4 digits.