Quick question HELP PLEASE!

Hi i need to write a code that gives a percentage of a percentage

ex. 25% discount and once again a 25% discount on merchandise

can anyone help me write this in code form?
Please note, that this is not a homework site.
We won't do your homework for you.
The purpose of homework is that you learn by doing.
However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.


We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
Last edited on
I know that for one percentage i would just put

price * 50/100;

i just dont get how to get another percentage after that
Topic archived. No new replies allowed.