Read your C++ book, and use code tags when posting code.Code:int this_is_input; cin >> this_is_input; cout << "this is output"; ... if (false); // <--- awnser this_will_always_execute(); //why? ... int give_me_a_value; give_me_a_value = 10 - 5; //NOT 10 - 5 = give_me_a_value ... //input a char char op; cin >> op; //compare a char if (op == '+') {...}
gg
[EDIT]
wow, I'm a slow typer....your homework is done, now study your C++ book!!