c# get value of percentage code example
Example 1: percentage in c#
number = (percentage / 100) * totalNumber;
Example 2: percentage in c#
percentage = (yourNumber / totalNumber) * 100;
number = (percentage / 100) * totalNumber;
percentage = (yourNumber / totalNumber) * 100;