uh,
cout << "Type a number. "; cin >> z; cout << "Type another. "; cin >> x; z = x*y;
that's just going to do
z = x*
as y isn't being set