12345678
for(int a=0;a<3;a++) { for(int b=0;b<3;b++) { if((ingredient==pizza[a])&&(ingredient==pasta[b])) cout<<"Pizza and pasta have "<<ingredient<< " as an ingredient."<<endl; } }