Skip to content

Commit

Permalink
Final Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
syedmaaz9905 committed Nov 18, 2020
0 parents commit 98bba34
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions github quadratic formula.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#Quadratic Formula

print("------------------ QUADRATIC FORMULA ------------------")
A=int(input("Put The Value Of A = "))
B=int(input("Put The Value Of B = "))
C=int(input("Put The Value Of C = "))
d=(B**2-4*A*C)
X1=(-B+d)/2*A
print("\nFor Positive Value")
print("Quadratic Formula = (-B+(B^2-4*A*C)*0.5)/2*A ")
print('X1 =',X1)
print("\nFor Negative Value")
print("Quadratic Formula = (-B-(B^2-4*A*C)*0.5)/2*A ")
X2=(-B-d)/2*A
print('X2 =',X2)

0 comments on commit 98bba34

Please sign in to comment.