Apart from the issue that Tony Hill notes above, you are not returning the percentage value to the caller. So you need the following:
int marks_percentage (int a, int b, int c)
{
int sum, percentage, total_marks;
sum = a + b + c;
total_marks = 300;
percentage = sum * 100 / total_marks;
return percentage; }