title: Having trouble with one exercise from Kochan Book: Programming in C i + j - i % j
body: <p>this is my source C code: </p>
  
  <blockquote>
    <p>details that stackoverflow want to see or i can't edit</p>
  </blockquote>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main (void) {
  
      int  i, j;
  
      int Next_multiple = (i + j) - (i % j);
  
      i = 365;
      j = 7;
  
      printf("Solution for i == 365 j == 7 = %i \n", Next_multiple);
  
      i = 12258;
      j = 23;
  
      printf("Solution for i == 12258 j == 23 = %i \n", Next_multiple);
  
      i = 996;
      j = 4;
  
      printf("Solution for i== 996 j == 4 = %i \n", Next_multiple);
  
      return 0;
  }
  </code></pre>
  
  <p>and that's the output:</p>
  
  <p>.exe (Windows cmd within Visual studio tools)</p>
  
  <pre><code>Solution for i == 365 j == 7 = 18039659
  
  Solution for i == 12258 j == 23 = 18039659
  
  Solution for i== 996 j == 4 = 18039659
  </code></pre>