0

```
#include <iostream>
using namespace std;
int main()
{
double firstNo;// first number is stored here
double secondNo;
double result;//variable for result when first and second number are operated upon
double operation;// place to store the user's inputed operation
// asks the user to choose the first number
cout<< "Enter in the first Number ->";
cin >> firstNo;
// asks the user for the second number
cout<< "Enter in the second Number -> ";
cin >> secondNo;
cout<< "which operation would you like to choose?\n";
cout<< "(+) add, (-) sub, (*)multiply, (/) divide";
cin >> operation;
if (operation == '+'){
result = firstNo + secondNo;
cout<< "The sum of these two numbers are ->" << result << "\n";
}
else if (operation == '-'){
result = firstNo - secondNo;
cout<< "The difference of these two numbers are ->" << result << "\n";
}
else if (operation == '*'){
result = firstNo * secondNo;
cout<< "The product of these two numbers are ->" <<result << "\n";
}
else (operation == '/'); {
result = firstNo / secondNo;
cout<< " The quotient of these two numbers are ->" << result << "\n";
}
cout<<"/n";
return 0;
}
```

what ever operation i type in; say + or *, all that comes out is the quotient. I don't know where i messed up. i am guessing it is with the if else statements