title: C Loop until the condition is met problem
body: <p>I want to write a loop that runs until the user enters a number greater than 10, but I have to do something wrong because it creates an infinite loop.</p>
  
  <pre><code>int main()
  {
      int a;
      printf("Enter 'a' value (min 10): ");
      scanf("%d",&amp;a);
      for(int i=0;a&lt;10;i++){
          printf("Enter value&gt;10");
          i++;
          printf("%d",&amp;a);
      }
      printf("Result:%d",a+a-2+a-4+a-6+a-8+a-10);
      return 0;
  }
  </code></pre>