Hi all,
I was wondering if you may be able to help me with determining if five numbers in a sequence are the same or not, using C. I've had a go, but it seems terribly long winded and was wondering if there may be another way to accomplish this.
I have represent my numbers with ABCDE, if they are the same then appropriate label is given the value 1. Then by using logic, I have written down all combinations of ABCDE where three are the same. But this is a lot of combinations.
Is there a simpler way to do this in C?
Many thanks for your time,
Sparky
I was wondering if you may be able to help me with determining if five numbers in a sequence are the same or not, using C. I've had a go, but it seems terribly long winded and was wondering if there may be another way to accomplish this.
I have represent my numbers with ABCDE, if they are the same then appropriate label is given the value 1. Then by using logic, I have written down all combinations of ABCDE where three are the same. But this is a lot of combinations.
Is there a simpler way to do this in C?
Many thanks for your time,
Sparky