title: Pascal syntax error 85
body: <p>First off, I'm new to programming and I've just started learning pascal. I've encountered an error 85: ";" expected. I searched through the whole thing multiple times but I haven't been able to find the problem. Any suggestions?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>program test;
  var
    a,b,c:real;
  begin
    D:=sqr(b)-4*a*c;
    writeln('Enter a value for a');
    readln(a);
    writeln('Enter a value for b');
    readln(b);
    writeln('Enter a value for c');
    readln(c);
    if ( D&lt;0 ) then
    begin
      writeln('There is no solution.');
    else
    if ( D&gt;0 ) then
    begin
      x1:=(-b+sqrt(D))/2*a;
      x2:=(-b-sqrt(D))/2*a;
      writeln('x1 is:');
      writeln('x1:=',x1);
      writeln(x2 is:);
      writeln('x2:=',x2);
    end;
  end.
  </code></pre>