title: Finding Max Value without the use of if..else statement in C language
body: <p>I'm trying to find max value of three integers without the use of if...else statement, when I was doing some search, I came across this lines of code.. Besides the abs function, all the other lines 
  I could understand.Can anyone explain how the abs function in the code works?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      int x, y, z, result, max;
  
      printf("\nInput the first integer: "); 
      scanf("%d", &amp;x);
  
      printf("\nInput the second integer: ");
      scanf("%d", &amp;y);
  
      printf("\nInput the third integer: ");
      scanf("%d", &amp;z);
  
      result=(x+y+abs(x-y))/2;
      max=(result+z+abs(result-z))/2;
  
      printf("\nMaximum value of three integers: %d\n", max);
  
      return 0;
  }
  </code></pre>