I'm trying to get the program to loop back to the friends array and re-compare the two user inputs again and keep doing it until the 2nd input is the same as the first. We haven't covered this yet in my class but could someone help me to find this out? Since it is only and array[3] I only needed 2 of the index to match.
{
for(int num = 0; num < 3; num++)
{
cin >> input;
mystery[num]= input;
}
for (int buddynum = 0; buddynum < 3; buddynum++)
{
cin >> newinput;
friends[buddynum] = newinput;
}
if (mystery[0] == friends[0] || mystery[1] == friends[1])
cout << "You guessed right!";
else //This is where i need a call to the friend loop
}