#include <iostream>#include <cstdio>using namespace std;int main(){ int passenger; cout<<"Enter Passenger: "; cin>>passenger; char choice; for (int i=1;i<=passenger;i++) //it will be testing each passenger on the car { do { //it suppose to accept 'M' but somehow it doesn't printf("\nIs The Passenger%d Male Or Femail? (M/F) ",i); scanf("%c",&choice); if (choice=='M' || choice=='F') break; else cout<<"\nPlease Try Again (Only M or F Accepted) "<<endl; } while(choice!='M' || choice!='F'); }}