title: Solving equations in C++
body: <p>I'm very new to C++ and I've been given a task to solve this quadratic equation: </p>
  
  <blockquote>
    <p>5x2^ + 6x-1 = 0</p>
  </blockquote>
  
  <p>How do I achieve this by writing C++ code?</p>
  
  <p><strong>Edit:</strong> Placed the code I tried using </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int sq, sixq, single, sum
      sq = 5 * 5;
      sixq = 6;
      single = -1 ;
      sum = sq + sixq - single;
  
      return sum;
  }
  </code></pre>