program won't multiply right
hey everybody i'm Really new at C++ programming and as sort of a little test for myself i've decided to make a short little program which takes two numbers the user enters and multiplies them and it works with no problems, except that when i put in 2 * 2 it gives me 146 as an answer? i looked at it and i see nothing wrong with it so i was hoping maybe someone here can find whats wrong with it. my code is
Code:
#include <iostream>
using namespace std;
int main()
{
int x;
int y;
cout<<"enter 2 numbers to be multiplied ";
cin>> x,y;
cin.ignore();
cout<<"the answer is "<< x * y;
system (" pause");
}
if anyone can help me with this problem i would appreciate it greatlym thanks