title: 3-digit integer number program won't execute
body: <p>Yes, this is a basic C coding homework problem. No, I am not just looking for someone to do it for me. Considering that this is my first programming class, I'm not surprised that I can't get it to work, and I'm certain there is plenty wrong with it. I just want some help pointing out the problems in my code and the things that are missing so that I can fix them on my own.</p>
  
  <p><strong>Homework Question:</strong> </p>
  
  <blockquote>
    <p>Write a program to read ONLY one integer number (your input must be
    one    3 digit number from 100 to 999), and to think of a number as
    being ABC   (where A, B, and C are the 3 digits of a number). Now,
    form  the  number   to become ABC, BCA, and CAB, then find out the
    remainder of  these three   numbers when they are divided by 11.
    Assume remainders would  respectively   be X, Y, and Z  and  add  them
    up  as  X+Y, Y+Z, and  Z+X. Now if any  of   these summations is odd
    number, increase it by 11 if the summation plus 11   is less than 20,
    otherwise  decrease the  summation  by 11 (this summation   operation
    must  be positive  number but  less than 20). Finally, divide   each
    of the sums in half. Now, print out all the resulting digits.</p>
  </blockquote>
  
  <p><strong>My Code:</strong></p>
  
  <pre><code>#include &lt;math.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      //Declare all variables
      int OrigNumber;
      int x, y, z;
      int number;
      number = x, y, z;
      int sum;
      //
      printf("Input a three digit number");
      //
      int c;
      c = OrigNumber %10;
      //
      int b;
      b=((OrigNumber - c) % 100)/10;
      //
      int a;
      a = (OrigNumber - (b + c))/100;
      //
      int abc, bca, cab;
      abc = (a*100) + (10*b) + c;
      bca = (10*b) + c + (a*100);
      cab = c + (a*100) + (10*b);
      //
      if((number % 2) == 1)
          {
              if(number + 11 &lt; 20)
                  number += 11;
              else if((100 - 11 &gt; 0) &amp;&amp; (100 - 11 &lt; 20))
                  number -= 11;
          }
      //
      x = abc/11;
      y = bca/11;
      z = cab/11;
      //
      sum = (x + y),
            (y + z),
            (z + x);
  }
  </code></pre>