C Programming Code Examples C > Mathematics Code Examples Program To Calculate Percentage In C Program To Calculate Percentage In C Percent means per cent (hundreds), i.e., a ratio of the parts out of 100. The symbol of percent is %. We generally count percentage of marks obtained, return on investment etc. Percentage can go beyond 100% also. percentage = ( part / total ) x 100 #include <stdio.h> int main() { float percentage; int total_marks = 1300; int scored = 1084; percentage = (float)scored / total_marks * 100.0; printf("Percentage = %.2f%%", percentage); return 0; } procedure percentage() VAR value, total percentage = value / total * 100 RETURN percentage end procedure