Simple calculator code doubt


what is wrong with this code