I"m trying to make my program decide when an input is invalid and use the right cout statement here is the code
if( s_code = 1022)
cout <<endl;
else
cout << "DENIED: Security Code Mismatch" << endl;
if( zip_code = 92831)
cout <<endl;
else
cout << "DENIED: Zip Code Mismatch" <<endl;
if(exp_month <= 12 && exp_year <= 2009 )
cout << endl;
else
cout << "DENIED: Card has Expired" << endl;
if( avail_b >= 12000)
cout << " APPROVED"<<endl<<endl<<"Saving new data..."<<endl;
else
cout << "DENIED: Insufficient Funds" <<endl;
// any input the program prints out " APPROVED" i want it to only choose approved if all the statemetn are true