You probably meant to have curly braces around your if statement body:
1 2 3 4 5 6 7
if (n > 30 || n <= 3 )
{
cout << "You need to enter more than or equal to 3 and less than 30";
break;
}
else
//continue; // Wait, what? You can't have 'continue' when there's no loop
Okay. Thank you for correct me. What could be the possible correction in case I want to continue running the program if user enters the correct range of numbers (i.e, 3-30)?