rey deleon

Greenhorn

Posts: 4

Tony Docherty

Bartender

Posts: 3271

82

Derek Dalek

Greenhorn

Posts: 2

posted 2 years ago

If I understand the problem correctly, you have 2 four digit numbers and need to determine the number of matching digits. For example, if the numbers are 1234 and 1574, the first and last digits match and the count would be 2. While I want to give you more time to solve on your own, I will say that my solution involved the use of the modulus operator.