I have entered 4 numbers into an array using
for (int i=0;i<4;i++)
{
cin >> choice[i];
}
I need to check whether i have entered numbers 1,3,4,6(in any order) into the array
eg:-
if choice[0] == 1 && choice[1] == 3 && choice[2] == 4 && choice[3] == 6
else if ........ 1,3,6,4
else if..........1,6,3,4
else if.......1,6,4,3
else if......1,4,6,3
else if......1,4,3,6
....
....
else if.....6,4,3,1
this type of checking makes my code too big.
Please help me with an alternative way