Remember when doing calculations in C++, that multiply and divide takes priority above addition and subtraction.
Adding brackets according to these rules, makes it easier to understand, and it a neater way to code.
Remember that when you use the cout statement, do not use quotes around an arithmetic expressions it will simply display the whole line.
Adding brackets according to these rules, makes it easier to understand, and it a neater way to code.
Remember that when you use the cout statement, do not use quotes around an arithmetic expressions it will simply display the whole line.