So the task is to use if/else statements to write a program that helps the user troubleshoot wifi. It displays a statement like "Try rebooting the router and connecting. Did that fix the problem? Type Y or N." If the user types Y, the program ends, if they type N, it displays another solution to try, and it keeps going like that for a while. I'm not sure how to integrate a cin into each loop that the computer recognizes as a separate loop. So far I have something like,
char input;
cout << "First, reboot the computer and try to connect. Did that work?" << endl;
cout << "Did that fix the problem? Type Y or N." << endl;
cin >> input;
if (input == 'N')
{
cout << "Reboot the computer and try to connect. Did that work?" << endl;
cin >> input;
}