title: Smallest of 3 Integers and Prints the Smallest Numerically in the Group
body: <p>I wrote my first program in C++ which reads in three integers and determines which is the smallest number from the group. However I need some guidance on how to prompt the user and read the three values from the console with a <code>cout</code> print message.</p>
  
  <p>In my pseudo code I have it to be...""The smallest value among <code>a, b, and c is x</code> (where <code>a</code>, <code>b</code>, <code>c</code>, and <code>x</code> are replaced by the actual values.)</p>
  
  <p>I am just stuck on how to implement that with my code. </p>
  
  <p>My requirements are:</p>
  
  <ul>
  <li>Comparison operators, <code>&amp;&amp;</code> and <code>||</code> </li>
  <li>Else and nesting allowed</li>
  </ul>
  
  <p>Any guidance is really appreciated</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int a, b, c, d;
      cout &lt;&lt; "Enter the value of a: ";
          cin &gt;&gt; a;
      cout &lt;&lt; "Enter the value of b: ";
          cin &gt;&gt; b;
      cout &lt;&lt; "Enter the value of c: ";
          cin &gt;&gt; c;
  
     if (a &lt; b)
          d = a;
      else
          d = b;
  
          cout &lt;&lt; "the smallest of the numbers is: " &lt;&lt; ((d &lt; c) ? d : c) &lt;&lt; endl; //
  
  
      return 0;
  
  }
  </code></pre>