C Program to show repeated digits

OUTPUT: