title: Why is my program printing 0 instead of the intended value? (C)
body: <p>I'm trying to make a calculator program for my class (not fully completed as you can tell) and I'm running into a problem with the Multiplication and Division section. They both print out 0 instead of their intended value, but Addition and Subtraction work fine. Any help?</p>
  <pre><code>int choice = 8;
  double numberone;
  double numbertwo;
      
  while(choice &gt; 7 || choice &lt; 1){
      printf(&quot;(1) Addition \n(2) Subtraction \n(3) Multiplication \n(4) Division \n(5) Modulus (integers only) \n(6) Test if prime (integers only) \n(7) Exit \nPlease choose an operation: \n&quot;);
      scanf(&quot; %i&quot;, &amp;choice);
      
      if (choice != 5 || choice!= 6){
          printf(&quot;Enter the first number: &quot;);
          scanf(&quot; %d&quot;, &amp;numberone);
          
          printf(&quot;Enter the second number: &quot;);
          scanf(&quot; %d&quot;, &amp;numbertwo);
          
          if (choice == 1){
              double sum = numberone + numbertwo;
              printf(&quot;Sum: %d&quot;, sum);
          }
          else if (choice == 2){
              double dif = numberone - numbertwo;
              printf(&quot;Difference: %d&quot;, dif);
          }
          else if (choice == 3){
              double pro = numberone * numbertwo;
              printf(&quot;Product: %d&quot;, pro);
          }
          else if (choice == 4){
              double quo = numberone / numbertwo;
              printf(&quot;Quotient: %d&quot;, quo);
          }
      }
  }
  }
  </code></pre>