#include
using namespace std;
int main()
{
int NR1,NR2,NR3,OP1;
cout << "this is a basic calculator; \n enter a number, a operator (such as + and -)\n and then a second number, and it will be calculated";
cout << "please enter the first number and hit enter\n";
cin>> NR1;
cin.ignore(); //get first number for eqaution
cout<< "please enter the operator (such as +,- and *)\n";
cin>> OP1;
cin.ignore(); //get operator for equation
cout<< "please enter the second number and hit enter\n:";
cin>> NR2;
cin.ignore(); //get second number for eqaution
NR3= NR1 OP1 NR2; //do the math
cout<< "the answer to your eqaution is:\n";
cout<< NR3; //show the answer
cin.get();
}