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 internal and protected-internal accessspecifier in c#.net?
What is a protected class c#?
Explain how to implement an object pool in c#.net
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
Does c# supports destructors?
What is autopostback in c#?
How do you create multiple inheritance in C#?
How do you declare an interface in c#?
What is difference between class and abstract class in c#?
Why do we need escape characters?
If a child class instance is created, which class constructor is called first - base class or child class?
What is the difference between dynamic type variables and object type variables in c#?