Need help for my project
i want to add some values with terminal ex 29, 140, or even 0
but what i do is not increase by adding new and previous value instead just changing the previous value
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.
Without the rest of the code it is not really possible to help you.
You should post code ready for compilation.
Then you should compile it and report compiler errors (if relevant).
Then you should run your code and tell what it should do and does not or what it does and should not do...
This snippet will not compile.
From the snippet I cannot see if your variable scope is good...
Every time this code runs these variables get set to initial values. Is that what you want? If not then keep the declaration at the top of the program so it does not get repeated.
You can ignore my snippet, please help me, give some example about input numeric values who can continue added with the last input value, my problem is when i input 10 then 10 again it’s not 20, but still 10