Equal numbers. Given three integers, determine how many of them are equal to each other. The program must print one of these numbers: 3 (if all are the same), 2 (if two of them are equal to each other and the third is different) or 0 (if all numbers are different).
Input |
Output |
10 |
2 |
17 |
2 |
4 |
2 |
5 |
0 |
-149 |
0 |