title: Writing algorithm for types of triangle
body: <p>I am faced with a question that goes like this:</p>
  
  <p>Write an algorithm that reads three integers <code>a, b, c</code> representing the sides of a triangle.<br>
  Next, print the type of triangle represented (scalene, equilateral, isosceles). <br>Assume a valid triangle is represented.</p>
  
  <p>I would like some feedback on the errors that my algorithm may present or what I can do to improve how sequential it is:</p>
  
  <pre><code>step 1)  Start
  step 2)  Declare int a,b,c
  step 3)  Prompt a,b,c
  step 4)  Read a,b,c
  step 5)  If (a&lt;&gt;b and b&lt;&gt;c and c&lt;&gt;a) then
  step 6)  Print "Scalene Triangle"
  step 7)  Elseif((a=b and a != c) or (a=c and a!=b) or (b=c and b!=a))
  step 8)  Print "Isoceles Triangle"
  step 9)  Elseif ((a=b &amp; b!=c ) or (a=c &amp; c!=b) or (b=c &amp; c!=a)) then
  step 10) Print "Equilateral Triangle"
  step 11) Endif
  step 12) Stop
  </code></pre>