in a town the percentage of total men is 52. the percentage
of total literacy is 48. if total percentage of literate men
is 35 of total population. write a program to find out the
total no of illiterate men and women.
Answers were Sorted based on User's Feedback
int total;
public void methods()
{
Console.WriteLine("Enter The total population");
int s = int.Parse(Console.ReadLine());
int totalman = s * 52 / 100;
int totalwoman = s * 48 / 100;
int manliteracy = s * 35 / 100;
int womanliteracy = s * 13 / 100;
total = manliteracy + womanliteracy;
}
just call this method and see the result
Is This Answer Correct ? | 15 Yes | 8 No |
Answer / muhammad nawaz
#include<conio.h>
#include<stdio.h>
void main(void)
{
long int pop=80000, pop_men, pop_wom, lit, illit, lit_men,
lit_wom, illit_men, illit_wom;
clrscr();
pop_men=52*pop/100;
pop_wom=pop - pop_men;
lit=48*pop/100;
illit= pop-lit;
lit_men=35*pop/100;
lit_wom=lit-lit_men;
illit_men= pop_men – lit_men;
illit_wom= pop_wom-lit_wom;
printf(“ illiterate Men=%ld”, illit_men);
printf(“ illiterate Women=%ld”, illit_wom);
getch();
}
Is This Answer Correct ? | 4 Yes | 4 No |
Answer / kirankanneti
int totalliteracy;
Console.WriteLine("enter the population");
int s = int.Parse(Console.ReadLine());
int totalmen = s * 52 / 100;
int totalliteracy = s * 48 / 100;
int menliteracy = s * 35 / 100;
int womenliteracy = totalliteracy - menliteracy;
totalliteracy = menliteracy + womenliteracy;
Is This Answer Correct ? | 4 Yes | 7 No |
What is sqldataadapter in c#?
What is the function of .IsDescendent()?
Can destructors have access modifiers?
How is a string immutable?
write code for Factorial?
What is assembly c#?
What are the 3 types of comments in c#?
What is dataview c#?
List down the different ide’s provided by microsoft for c# development.
Why we use get set property in c#?
What is difference between gridview and form view?
Why can?t you specify the accessibility modifier for methods inside the interface?
3 Answers Mind Tree, Siebel Systems,