i am trying to make a simple calculator allow to the user to enter how many number her/she wants. it goes well from the out side but when it start the calculation it gives a wrong result to the numbers
i used these cods if you can help me please to know where is the mistake
Please, use code tags (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your
post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <>
formatting button.
AbstractionAnon
i did the changes in line 49 and 41.
in line 8 i replaced the floats with int
about the while loop i want to give the user the ability to enter numbers how many times he want but i don't know if i am doing it right.
that is the assignment
The calculator should be able to
add how many numbers at any time before choosing to get the total
Subtract the number of times before you decide to get the total
Multiply the number of times any time before operating one chooses to get the total
Add, subtract, multiply and / or divide the number of times before you decide to get the total
Clear the calculator so that you can start over