Simple Calculator
Simple Calculator
#include <iostream>
using namespace std;
int main()
{
int a, b;
char op;
switch (op)
{
case '+':
cout << "The sum of two numbers is " << a + b;
break;
case '-':
cout << "The subtraction of two numbers is " << a - b;
break;
case '*':
cout << "The multiplication of two numbers is " << a *
b;
break;
case '/':
cout << "The division of two numbers is " << a / b;
break;
default:
cout << "Error! Operator is not correct";
}
return 0;
}