Beginner encryption program : <p>Been trying to get the encryption to perform the operation and store the value for each of the 4 variables, and then print each of these 4 separate variables. Where am I going wrong? encrypt only wants to work on one of the calculations.</p>

<pre><code>int main(void) {

  int a, b, c, d, encrypt;

  printf("Enter integer 1:\n");
  scanf("%d", &amp;a);
  printf("Enter integer 2:\n");
  scanf("%d", &amp;b);
  printf("Enter integer 3:\n");
  scanf("%d", &amp;c);
  printf("Enter integer 4:\n");
  scanf("%d", &amp;d);

  encrypt = (a += 7) % 10, (b +=7) % 10, (c +=7) % 10, (d +=7) % 10;

  printf("The encrypted value is: %d%d%d%d\n", encrypt);
  //scanf("%d", &amp;encrypt);

  return 0;
}
</code></pre>
