Find total number of illiterate men and women

In a town, the percentage of men is 52. The percentage of total literacy is 48. If total percentage of literate men is 35 of the total population, write a program in C to find the total number of illiterate men and women if the population of the town is 80,000.

Program

#include<stdio.h>
#include<conio.h>
void main()
{
    long int total_pop = 80000;
	long int total_men, total_women;
	long int total_illit, total_lit;
	long int lit_men, lit_women;
	long int illit_men, illit_women;

	total_men = 52 * total_pop / 100;
	total_women = total_pop - total_men;
	total_lit = 48 * total_pop / 100;
	total_illit = total_pop - total_lit;
	lit_men = 35 * total_pop / 100;
	lit_women = total_lit - lit_men;
	illit_men = total_men - lit_men;
	illit_women = total_women - lit_women;

	printf("\nIlliterate Men   = %ld",illit_men);
	printf("\nIlliterate women = %ld",illit_women);

	getch();
}

Output

Illiterate Men   = 13600
Illiterate women = 28000

Explanation

In the above problem, total population of the town is 80,000 (given) and it is stored in the variable named 'total_pop'

Out of the total population, 52% of the population is men.
i.e. total_men = 52 * total_pop / 100;

If we subtract total number of men from the total population, we will get the total number of women.
i.e. total_women = total_pop - total_men;

Out of total population, 48% of the population is literate, so total literate population can be calculated as
total_lit = 48 * total_pop / 100;

If we subtract the total number of literate population from the total population, then we will have the total number of illiterate population.
total_illit = total_pop - total_lit;

We know that 35% of total population contributes to literate men, so,
lit_men = 35 * total_pop / 100;

Again, if we subtract number of literate men from total literate population, then we will have the number of literate women.
i.e. lit_women = total_lit - lit_men;

Now, number of illiterate men can be obtained by subtracting number of literate men from the total number of men. And, similarly number of illiterate women can be obtained by subtracting number of literate women from the total number of women.
illit_men = total_men - lit_men;
illit_women = total_women - lit_women;