title: A program that would show no error but would not give the desired outcome
body: <p>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 total population, find the total number of illiterate men and women separately.The population of the town is 80,000.</p>
  
  <p>There is that question in my math book and I tried to write a program on it. </p>
  
  <p>After building the program, the compiler showed no error but the program would not give the desired outcome. I rewrote the program many times and the code given below is my final one. I am thinking that there must be some arithmetical association error but could not figure out where.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      int men, wmen, litm, litwo, illit, lit, tot=80000, illitwmen;
      men = (52/100) * 80000;
      wmen = tot-men;
      lit = (48/100) * 80000;
      litm = (35/100) * 80000;
      litwo = lit-litm;
      illitwmen = wmen-litwo;
      printf("Hence the total illiterate men of the town is %d\n", men-litm);
      printf("Hence the total illiterate women is %d\n", illitwmen);
      return 0;
  }
  </code></pre>