if the percentage of men is 54 from the population and total literacy is 80% from the population.Take note that the total literate men are 30 percent of the total population.
#include<conio.h>
# include<stdio.h>
#include<stdlib.h>
// Create a C program to find the total number of illiterate men and women from the population of the town.
// if the percentage of men is 54 from the population, and total literacy is 80% from the population.
// Take note that the total literate men are 30% of the population
int main()
{
int PopSize = 100;
int TotalLiteracy = 80;
int PopMen = 54,PopWomen;
int MenLiteracy,WomenLiteracy=30;
printf("\n\tTotal Population = %d",PopSize);
printf("\n\tMen Population = %d %c",PopMen,'%');
printf("\n\tWomen Population = %d %c",(100-PopMen),'%');
printf("\n\n\tTotal Literacy = %d %c",TotalLiteracy,'%');
PopSize=5000;
PopMen = (PopMen*PopSize)/100;
PopWomen = PopSize - PopMen;
TotalLiteracy = (TotalLiteracy*PopSize)/100;
printf("\n\n\tTotal Population = %d",PopSize);
printf("\n\tAbsolute Men Population = %d",PopMen);
printf("\n\tAbsolute Women Population = %d",(PopSize-PopMen));
printf("\n\n\tAbsolute Total Literacy = %d",TotalLiteracy);
WomenLiteracy = (WomenLiteracy*PopSize)/100;
MenLiteracy = TotalLiteracy - WomenLiteracy;
printf("\n\n\tAbsolute Men Literacy = %d",MenLiteracy);
printf("\n\n\tAbsolute Women Literacy = %d",WomenLiteracy);
}
Comments
Leave a comment