Python:
import math
a = int(input("a = "))
b = int(input("b = "))
x = int(input("c = "))
x = -b/a
if a != 0:
print(x)
elif b != 0:
print("Корней нет")
else:
print("Любое число")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python:
import math
a = int(input("a = "))
b = int(input("b = "))
x = int(input("c = "))
x = -b/a
if a != 0:
print(x)
elif b != 0:
print("Корней нет")
else:
print("Любое число")