Error at my python code
<p>when i run this code :</p>

<pre><code>import math
print "welcome !This program will solve your quadratic equation"

A = input("inter a =")
B = input("inter b =")
C = input("inter c =")
J=math.pow(B,2)-4*A*C 
X1=-B+math.sqrt(J)/2*A
X2=-B-(math.sqrt(J))/(2*A)
print "your roots is :" , X1 , X2
</code></pre>

<hr>

<p>it gives me error ?! why 
thank you ^</p>

<p>Your <code>print</code>'s have missing <code>()</code>. Fixed version:</p>

<pre><code>import math
print("welcome !This program will solve your quadratic equation")
A = input("inter a =")
B = input("inter b =")
C = input("inter c =")
J = math.pow(B,2)-4*A*C 
X1 = -B+math.sqrt(J)/2*A
X2 = -B-(math.sqrt(J))/(2*A)
print("your roots is :" , X1 , X2)
</code></pre>

<p>I have fixed only that errors, I dont know if it calculates right what you need.</p>

<p>P.S There is suggestion from me. Try to look for errors in default Python interpreter, and read the code before giving up and asking questions</p>

<p>P.P.S I also didnt noticed a wrong assigning to variables. It must be <code>J = (...)</code> but not <code>J=(...)</code>. Also I have fixed upper code according to this</p>

python pycharm