#include <iostream>
#include <conio.h>
usingnamespace std;
int main(){
int p=1, n1, n2;
char c;
cout<<"Type the first number and after, the operator: ";
cin>>n1;
putch(c=getch());
cout<<""<<endl;
cout<<"Type the second one: ";
cin>>n2;
if(c=='x') {
p=n1*n2;
cout<<"The product is: "<<p<<".";
}
else cout<<"Error";
return 0;
}
P.S. Please do not help me with other code, I just want this programe to work the way I thaught to make it work.
P.P.S. I'm novice.