title: C++ program on determining triangle
body: <p>I need help with the following code that requires me to:</p>
  
  <ul>
  <li><p>Declare 3 <code>double</code> type variables, each representing one of three sides of a triangle.</p></li>
  <li><p>Prompt the user to input a value for the first side, then</p></li>
  <li><p>Set the user’s input to the variable you created representing the first side of the triangle.</p></li>
  <li><p>Repeat the last 2 steps twice more, once for each of the remaining 2 sides of the triangle.</p></li>
  <li><p>Use a series of nested <code>if</code> / <code>else</code> statements to determine if the triangle having side-lengths as set by the user is an EQUILATERAL, ISOSCELES, or SCALENE triangle.
  [Note: look to the Wikipedia page on ‘triangle’ for definitions of these three types of triangles.]</p></li>
  <li><p>Print the resulting triangle type to the console.</p></li>
  <li><p>Ensure your Triangle detector works by running it 5 times as in the example above.  You may use the same values as in the example.</p></li>
  </ul>
  
  <p>I currently have:</p>
  
  <pre><code>//lab eleven program code on triangles
  #include &lt;iostream.h&gt;
  
  main()
  {
      //variables
      float aside, bside, cside;
      //enter side a
      cout&lt;&lt;"enter the length of side a "&lt;&lt;endl;
      cin&gt;&gt;aside;
      //enter side b
      cout&lt;&lt;"enter the length of side b "&lt;&lt;endl;
      cin&gt;&gt;bside;     
      //enter side c
      cout&lt;&lt;"enter the length of side c "&lt;&lt;endl;
      cin&gt;&gt;cside;
  
  // all sides equal
  if(aside==bside &amp;&amp; bside==cside)                 
     cout &lt;&lt; "Equilateral triangle\n";
  
  // at least 2 sides equal
  else if(aside==bside || aside==cside || bside==cside)   
  
     cout &lt;&lt; "Isosceles triangle\n";
  // no sides equal
  else                                
     cout &lt;&lt; "Scalene triangle\n";            
  }
  </code></pre>
  
  <p>But I need help with the <code>if</code> and <code>else if</code> statements to determine the type triangle. Our professor has not covered this topic in class.</p>
  
  <p>We use the program Ch 6.3 on Windows.</p>