I have to make a program that displays the k number of common digits of 2 numbers a and b.
For example if a is 23456 and b is 456900 then the number of common digits is 3(4,5 and 6).
Do I need an array that can hold the values of the digits?
I can remove the digits from the numbers and then put them in two arrays but I need help.
Is this the good way for my program or should I try something else?