Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  townpop
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
#include<math.h>

int main()
{
int tp,mp,mpl,wp,mil,wil,wl;

printf("Enter total population of the town");
scanf("%d",&tp);

mp=(70*tp)/100;
mpl(40*mp)/100;
mil=mp-mpl;

wp=tp-mp;
wi=(70*wp)/100;
wil=wp-wi;

printf("%d Men are illiterate and %d Women are illiterate in the town",mil,wil);
          
          
          
Comments: