please write it in C++ programming
Branching
[10pts]
Write a program that mimics a calculator. The program should take as input two integers
and the operation to be performed. It should then output the numbers, the operator, and the
result. (For division, if the denominator is zero, output an appropriate message.) Your program
should implement the addition, subtraction, multiplication and division. You are free to implement
other operations, but your program should contain at least the four operations listed above.
#include <iostream>
using namespace std;
void mimics(int a,int b,char c){
switch(c){
case '+':cout<<a<<" +
"<<b<<" = "<<a+b<<endl;break;
case '-':cout<<a<<" -
"<<b<<" = "<<a-b<<endl;break;
case '*':cout<<a<<" *
"<<b<<" = "<<a*b<<endl;break;
case '/':
if(b==0)
cout<<"Can't divide by 0";
else
cout<<a<<" * "<<b<<" =
"<<a*b<<endl;break;
}
}
int main()
{
mimics(10,2,'+');
mimics(4,5,'*');
return 0;
}

Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me
please write it in C++ programming Branching [10pts] Write a program that mimics a calculator. The...