We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 260f2c5 commit 3da9775Copy full SHA for 3da9775
1 file changed
codes_in_Aug2025/Solving_quadratic.py
@@ -2,7 +2,7 @@
2
print("General form of quadratic is: ax^2 + bx + c, where (a!=0).")
3
a = int(input("Enter the value for a: "))
4
if a == 0:
5
- print("a can't be equals to zero.")
+ print("Error: 'a' can't be equals to zero.")
6
else:
7
b = int(input("Enter the value for b: "))
8
c = int(input("Enter the value for c: "))
@@ -29,4 +29,5 @@
29
print("This quadratic have two real and distinct roots.")
30
root1 = (-b + round(math.sqrt(d), 2))/(2*a)
31
root2 = (-b - round(math.sqrt(d), 2))/(2*a)
32
- print(f"Which are \'{root1}\' and \'{root2}\'.")
+
33
+ print(f"Which are \'{root1}\' and \'{root2}\'.")
0 commit comments