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

if we take a number as a char then can we manipulate(add, subtract) on this number

2 Answers  


Can a pointer be null?

0 Answers  


What is calloc in c?

0 Answers  


How to add two numbers without using semicolon at runtime

2 Answers  


What is const volatile variable in c?

0 Answers  






What's the total generic pointer type?

0 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

0 Answers   TCS,


How do I use void main?

0 Answers  


Which is the best website to learn c programming?

0 Answers  


Can include files be nested?

0 Answers  


write a program for size of a data type without using sizeof() operator?

22 Answers   HCL, IBM,


Is array name a pointer?

0 Answers  


Categories