Create a C++ program that simulates a simple calculator. The program should take two numbers and an operator (+, -, *, or /) as input from the user. Perform the corresponding arithmetic operation and print the result.
Fulfill the following points while creating the calculator:
- Division by integer 0 is not allowed. If performed, print
Division by zero is not allowed. - Other operators are not allowed for calculations. If other operator is used other than the above four mentioned operators then print
Invalid operator.