Answer:
int main()
{
double pH;
int neutral;
int base;
int acid;
cout<<"Enter a pH Value";
cin>> pH;
if(pH<7.0){
neutral =0;
base=0;
acid= 1;
}
else if (pH=7.0){
neutral =1;
base=0;
acid= 0;
}
else{
neutral =0;
base=1;
acid= 0;
}
cout <<"The neutral, Base and Acid Values are: "<<neutral<<","<<base<<","<<acid<<" Respectively"<<endl;
return 0;
}
Step-by-step explanation:
Using multiple if/elseif/else statement the following problem is solved with C++