title: What can I do to fix this do-while?
body: <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  
  main()
  {
      float n1, n2, n3, m;
      int op;
      do{
      printf("Digite a primeira nota: ");
      scanf("%f", &amp;n1);
      printf("Digite a segunda nota: ");
      scanf("%f", &amp;n2);
      m = ((n1 + n2) / 2);
      printf("%.2f", m);
      printf("\nDeseja calcular novamente?\n 1 - SIM\n 2 - NAO\n"); scanf("%d", op);
      } while (op == 1);
  }
  </code></pre>
  
  <p>This is my code and I expected it to rerun when the user inputs "1" in the last scanf
  What did I do wrong?</p>