123456
if ( x + y == w){ cout << w << "!\n"; else cout << "Wrong\n"; cin.get(); }
12
21 F:\Programming Prc\Prc 1.cpp parse error before `else'
123456789
if (x + y == w) { cout << w << "!\n"; } //you should've ended your curly braces for 'if' statement here else { //start a new braces for 'else' statement here cout << "Wrong!\n"; cin.get(); } //end for 'else' statement