I am writing a program that solves solution to acid ratio story problems. For example: If there is 10 liters of a 25 % acid solution, how many liters of water do you need to add to make it a 10 % acid solution. My problem is that I'm getting weird outputs for my answers.
I think you may want to use doubles instead of ints. Integers, when divided by say 100, will still be an int, so if you do say 27/100 you'll get 0. This would seem to be a large target for your errors.
Also, lines like:
acidpercent/100
Don't really do anything. You're not storing the results of any of your calculations. You need to put them into either a new vairable, or reuse them.
==
is an equality operator, that returns a boolean. Probably not what you want here.