I'm new to c++ and I don't know very much. I was trying to make a simple calculator but the if statements don't seem to work. It will run both of them no matter what I type. I can't seem to figure it out. Sorry for me being so dumb. Could anyone help me out?
Hmmm....I'm not sure if you can use this, but I made a quick code that asks the user if they want to add or subtract then prompts them to input 2 numbers then either adds or subtracts depending on their choice.
Just a thought, I don't know if the assignment requires they type in a word, but you could have them enter a menu choice (e.g 1 or 2) instead of making them spell out an actual word and trying to account for different spelling/capitalization.