I have two switch statements in my program. If a user enters a 10 through 19 and the program enters the "Case 1" in the first switch statement, how can I program it that it should then skip the second switch statement?
The "Break;" at the end of case 1 breaks out of the first switch, then goes right into the second one. Any ideas?
switch (first_digit)
{
case 1:
if (double_digit == 10) cout << "ten.";
if (double_digit == 11) cout << "eleven.";
if (double_digit == 12) cout << "twelve.";
if (double_digit == 13) cout << "thirteen.";
if (double_digit == 14) cout << "fourteen.";
if (double_digit == 15) cout << "fifteen.";
if (double_digit == 16) cout << "sixteen.";
if (double_digit == 17) cout << "seventeen.";
if (double_digit == 18) cout << "eighteen.";
if (double_digit == 19) cout << "nineteen.";
break;