What kind of code can I use to print out the index of the number that is different? 1, 2, or 3? I know it has something to do with using arrays, but that is way over my head right now...
How can I get the index?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Cinthya Cabanzo
30 May 2019, 12:32
Well, try to define the cases and what the program must to or don't do, for example:
Cases :
- If all are equals do nothing.
- If the 1st and 2nd are equals, print the 3rd, and so on.
Have a nice day :)
0
Guadalupe Gagnon
29 May 2019, 21:10
No need for arrays on this one if you don't know how to use them. Just use boolean logic (true/false) checks:
That is your solve (in a very abstract way) 0