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 to find the
total no of the literate men and women if the population of
the town is 80000

Answers were Sorted based on User's Feedback



in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage o..

Answer / brajesh

#include<stdio.h>
#include<conio.h>
main()
{
int per_men, tot_men, tot_lit_pop, tot_lit_per, men_lit_per, tot_lit_men, tot_lit_wom, tot_wom, ilt_wom, ilt_men, tot_pop=80000;

per_men=52;
tot_men=tot_pop*per_men/100;
tot_lit_per=48;
tot_lit_pop=tot_pop*tot_lit_per/100;
men_lit_per=35;
tot_lit_men=tot_pop*men_lit_per/100;
tot_lit_wom=tot_lit_pop-tot_lit_men;
tot_wom=tot_pop-tot_men;
ilt_men=tot_men-tot_lit_men;
ilt_wom=tot_wom-tot_lit_wom;


printf("\nTotal Population = %d",tot_pop);
printf("\nTotal number of Men = %d",tot_men);
printf("\nTotal number of Literate Population = %d",tot_lit_pop);
printf("\nTotal number of Literate Men = %d",tot_lit_men);
printf("\nTotal number of Literate Women = %d",tot_lit_wom);
printf("\nTotal number of Women = %d",tot_wom);

printf("\nTotal number of Illiterate Men = %d",ilt_men);
printf("\nTotal number of Illiterate Women = %d",ilt_wom);

getch();
}

Is This Answer Correct ?    51 Yes 11 No

in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage o..

Answer / sonu

#include<stdio.h>
#include<conio.h>

void main()
{
float men,wmen,lit,illit,lit_men,lit_wmen,illit_men,illit_wmen,tot_pop;
men=80000*0.52;
wmen=80000-men;
lit=80000*0.48;
illit=80000-lit;
lit_men=80000*0.35;
lit_wmen=lit-lit_men;

illit_men=men-lit_men;
illit_wmen=wmen-lit_wmen;

printf("Total No. Illiterate men = %f",illit_men);
printf("
Total No. Illiterate woman = %f",illit_wmen);

getch();

}

Is This Answer Correct ?    8 Yes 3 No

in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage o..

Answer / bhawna

#include<stdio.h>
#include<conio.h>
main()
{
int per_men, tot_men, tot_lit_pop, tot_lit_per, men_lit_per, tot_lit_men, tot_lit_wom, tot_wom, ilt_wom, ilt_men, tot_pop=80000;

per_men=52;
tot_men=tot_pop*per_men/100;
tot_lit_per=48;
tot_lit_pop=tot_pop*tot_lit_per/100;
men_lit_per=35;
tot_lit_men=tot_pop*men_lit_per/100;
tot_lit_wom=tot_lit_pop-tot_lit_men;
tot_wom=tot_pop-tot_men;
ilt_men=tot_men-tot_lit_men;
ilt_wom=tot_wom-tot_lit_wom;


printf("\nTotal Population = %d",tot_pop);
printf("\nTotal number of Men = %d",tot_men);
printf("\nTotal number of Literate Population = %d",tot_lit_pop);
printf("\nTotal number of Literate Men = %d",tot_lit_men);
printf("\nTotal number of Literate Women = %d",tot_lit_wom);
printf("\nTotal number of Women = %d",tot_wom);

printf("\nTotal number of Illiterate Men = %d",ilt_men);
printf("\nTotal number of Illiterate Women = %d",ilt_wom);

getch();
}

Is This Answer Correct ?    8 Yes 4 No

Post New Answer

More C Interview Questions

5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

0 Answers  


Explain what are global variables and explain how do you declare them?

0 Answers  


how to find sum of 5 digits in C?

4 Answers  


helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe

2 Answers  


What is the use of getch ()?

0 Answers  






What are the advantages of c language?

0 Answers  


What is the difference between memcpy and memmove?

0 Answers  


what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }

4 Answers  


when user give a number it multiply with 9 without useing '+' and '*' oprator

4 Answers  


to convert a string without using decrement operater and string functions

1 Answers  


How can I find out the size of a file, prior to reading it in?

0 Answers  


Explain the ternary tree?

0 Answers  


Categories