how to calculate percentage of total marks in c#?
C# Get Percentage From Number With Format String, Handle percentages: get percentages from ratios with format strings. int valid = 92; int total = 99; // First multiply top by 100 then divide. double percent Example 2. Here we convert 2 integers into a percentage manually with division and multiplication.