I guess you mean to say, how to compare two numbers to find out same digits present in those two numbers. For example num1 = 1028 and num2 = 2205 Output: 0 2
wayne brandon wrote:how could i compare if there is the same number in each, like the 2?
I guess you meant i-- rather than i++ at for update.
Brecht Geeraerts wrote:....