Edward Wilke
New Member
Ok, so here's what I have so far:
The user inputs up to twenty values.
If the numbers are all the same (quite common) it counts how many of that number
Here's what I need:
If there is only one number, the result is that number. But, each time it doubles, (1:2:4:8:etc) the result is +2 from the previous.
Ex:
4 = 4
4,4 = 6
4,4,4,4 = 8
4,4,4,4,4,4,4,4 = 10
I also need to check if the values are all the same. If they are not, there is a different algorithm needed to calculate the result.
The user inputs up to twenty values.
If the numbers are all the same (quite common) it counts how many of that number
Here's what I need:
If there is only one number, the result is that number. But, each time it doubles, (1:2:4:8:etc) the result is +2 from the previous.
Ex:
4 = 4
4,4 = 6
4,4,4,4 = 8
4,4,4,4,4,4,4,4 = 10
I also need to check if the values are all the same. If they are not, there is a different algorithm needed to calculate the result.