title: How to establish a symbol, a character as a condition for loop
body: <p>I'm trying to put a loop on my code(a simple calculator), where it restarts if you try to divide some number per 0. I'm here for hours but can't manage to see the problem. I'm a beginner by the way.</p>
  
  <p>Tried using do while, using while and using if, every time the program simple ignores my condition. Now it is looping every time even without the conditions that I established being fulfilled.</p>
  
  <p>How do I establish "N2=0 and operation being '/'" as a condition?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main() {
  
      float N1, N2, resultado;
      char operacao;
  
      printf("Ola usuario! \n");
      printf("Para comecar, por favor digite o primeiro numero: ");
      scanf_s("%f", &amp;N1);
      printf("Digite o segundo numero: ");
      scanf_s("%f", &amp;N2);
  
      printf("\n Qual operacao aritmetica deseja realizar hoje? \n");
      printf("Escolha um dos 4 simbolos'+,-,* ou /': ");
      scanf_s(" %c", &amp;operacao);
      printf("\n");
  
      while ((N2 = 0) || (operacao == '/')); {
          printf("Operacao nao suportada! \n");
          printf("Digite novamente o segundo numero: \n");
          scanf_s("%f", &amp;N2);
          printf("Escolha um dos 4 simbolos'+,-,* ou /': ");
          scanf_s(" %c ", &amp;operacao);
      }
  
      switch (operacao)
      {
      case '+':
          resultado = N1 + N2;
          break;
      case '-':
          resultado = N1 - N2;
          break;
      case '*':
          resultado = N1 * N2;
          break;
      case '/':
          resultado = N1 / N2;
          break;
  
      }
  
      printf("\n O resultado da operacao escolhida e: %.1f", resultado);
      printf("\n\n");
  
      system("pause");
      return 0;
  }
  </code></pre>