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.


	printf("total points so far: %d out of 850\n\n", totalPoints);


	printf("%d\n", total);

Because integer division truncates. 200 * (1/2) = 0 because 1/2 = 0 using integers.
Cast your values to floats during the equation: (float)200 * ((float)1/(float)2) = 100