Hi everyone, im new to programming and am taking it at school this year.
Heres an easy question but im stuck on what to do.
I need to know what code to write so that if a person selects "Yes" they are dropped out of a loop but if they select no the loop continues. How would i go about doing this?
Heres the code im working with
if (yesno==1);
{
cout<< "Thank You";
}
if (yesno==2)
{
cout<< "Please Enter your info again";
As i said i need it so if the person picks yes they get dropped out of the loop but if the answer is no the loop continues.