Check out example codes for "percentage in c#". It will help you in understanding the concepts better.

Code Example 1

number = (percentage / 100) * totalNumber;

Code Example 2

percentage = (yourNumber / totalNumber) * 100;

Learn ReactJs, React Native from akashmittal.com