my code doesnt want to read what is inbetween the comments and just skips it even though phone and snn is set to smaller than that the inside of the code
int num = 1;
while (num > 0 && num < 2) {
num = 1;
string first = "chicken";
string last = "salad";
string full = "chicken salad";
int phone = 1;
int snn = 1;
cout << "enter your first name: ";
cin >> first;
cout << "enter your last name: ";
cin >> last;
full = first + " " + last;
cout << phone;
// works all the way to here then doesnt read the while
while (phone < 1000000000 && phone > 9999999999) {
cout << "enter 10 digit phone nmber (with no dashes or parenthesis): ";
cin >> phone;
}
while (snn < 100000000 && snn > 999999999) {
cout << "enter 9 digit snn <with no dashes>: ";
cin >> snn;
}
// starts working again here
cout << "\n\tT H A N K Y O U\n\n";
system("pause");
return 0;
}