if/else statement C++ first time
Price per gallon. Am a beginner in C++6.0 Just starting to learn.
Exterior Interior
1 to 3 Price = 16.75 Price is 16.26
4 to 7 Price = 15.85 Price is 15.10
there is more to this am just checking on how to write the if /and statementand .ok here goes.
cout<<"Exterior Price ";
cin>>exterior;
cout<<"Interior Price ";
cin>>interior;
if(numberofgallonspaint<=3)
{
cout>>"Exterior Price<<endl;
cout>>"numberofgallons<<total;
}
else
{
cout>>"Interior Price<<endl;
cout>>"numberofgallons<<total;
cout>>
};
Ok that's what I was thinking Please and Thank-you for your help.