Ok now i am having a retarded issue im sure. but here is what is supose to happen is n is not allowed to be more than 5 but when i run this and enter in 5 i get a blank space and when i enter 1-4 i get the error meassage. For reasons beyond me i can't figure it out.
void problem8(){
unsigned seed = time(0);
srand(seed);
int num1=rand()%90+10;
int num2=rand()%90+10;
int n=0;//choice
cout<<"Choice 1: addition, 2: subtraction, 3: multiplication, 4: division, 5: to end\n";
cin>>n;
while(n<=5){
cout<<"Choice 1 for addition, 2 for subtraction, 3 for multiplication, 4 for division, 5 for ending the program\n";
cin>>n;
}
...
}