Q2: Use a switch statement with breaks between the cases. Create a program that asks the
user for two float numbers. Then asks the user if they would like to:
1. add the numbers
2. subtract the numbers
3. multiply the numbers
4. divide the numbers
The program should then print the numbers with the chosen operation and the solution.
For example:
The user enters: 4 5 +
The program will output: 4 + 5 = 9
#include <iostream>
int main()
{
float int1, int2;
cout<<"enter tow numbers;\n";
cin>>int1;
cin>>int2;
cout<<"enter the operation '+','-','*','/':\n";
return 0;