I am trying to make a little program that will ask the user if they're human and then do a bunch of other stuff afterwards. The following is a snippet of the code where the user is asked whether they're human. Now if you enter anything other than yes or no, the program then loops with the 'goto' statement. The problem that I'm having is that the if statements, when they end go to this 'goto' statement thus looping when the program should end. How can I get the goto statement to be exclusively part of the second else if statement? Failing that, is there another loop structure that I should use? Any help would be greatly appreciated.
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
int main ()
{
go:
string i;
cout << "Are you Human?>"<<endl;
cin >> i;
if (i == "yes"&&"Yes")
cout<< "Cool"<<endl;
else if (i == "no"&&"No")
cout<< "Interesting"<<endl;
else if (i!= "yes"&&"Yes"&&"no"&&"No")
cout<< "A simple Yes or No will suffice..."<<endl;
goto go;
system("pause");
return 0;
}