so I want to take the totalPoints divide it by 850 then multiply it by 100 giving me a whole number, my problem is when i use my printf to display the new total it comes out at 0 or a number that i wasnt expecting.
totalPoints=grade1+grade2+grade3+grade4+midterm+attendence;
printf("total points so far: %d out of 850\n\n", totalPoints);
total=totalPoints/850*100;
printf("%d\n", total);