title: how to find max number among results
body: <p>I am given 5 integers that must be not less than 10 and not more than 100. Then, I must find their division remainders if we divide them by 10.  Then, I must find the sum of the remainders that I found and (there it goes the difficult part) finally which one of the 5 remainders is the max.</p>
  
  <p>Here, I give you the code that I wrote but I have no idea how to go further. Maybe with "for", but I don't imagine how exactly.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  int main()
  {
    int a, b, c, d, e, a10,b10,c10,d10,e10, sum, max;
    printf("give 5 integers \n");
    scanf("%d %d %d %d %d", &amp;a, &amp;b, &amp;c, &amp;d, &amp;e);
    a10 = a % 10;
    b10 = b % 10;
    c10 = c % 10;
    d10 = d % 10;
    e10 = e % 10;
    printf("division remainder is: %d %d %d %d %d\n", 
    a10,b10,c10,d10,e10);
    sum = a10 + b10 + c10 + d10 + e10;
    printf("the sum of the remains is: %d\n", sum);
  
    system("pause");
  }
  </code></pre>