title: Display smallest even and odd number from six integers without using loops and arrays
body: <p>So I am trying to do an assignment for my class but for some reason I cant get the output to match with what I need. I have to make a program that asks for 6 integers and display the smallest even and odd. There will be 3 even entered and 3 odd but the order is unknown and we can't use loops or arrays. This sample is just what i have so far but I can't seem to understand why a and b won't work.</p>
  
  <pre><code>int a, b, c, d, e, f, smallEven=0, smallOdd=0;
  cout&lt;&lt;"Enter a number:\n";
  cin&gt;&gt;a;
  
  if (a%2==0)
      smallEven=a;
  else if (a%2==1)
      smallOdd=a;
  
  cout&lt;&lt;"Enter a number:\n";
  cin&gt;&gt;b;
  
  if (b%2==0)
      if (smallEven=0)
          smallEven=b;
      else if (b&lt;smallEven)
          smallEven=b;
  else if (b%2==1)
      if (smallOdd=0)
          smallOdd=b;
      else if (b&lt;smallOdd)
          smallOdd=b;
  
  cout&lt;&lt;smallEven;
  cout&lt;&lt;smallOdd;
  </code></pre>