Basic calculator:what is wrong in this code?