Answer
$Code:$
Work Step by Step
$Statement:$
Write a program that prompts the user to enter a, b, c, d, e, and f and display the result. If ad – bc is 0, report that the equation has no solution.
$Code:$
a = int(input("Enter a:"))
b = int(input("Enter b:"))
c = int(input("Enter c:"))
d = int(input("Enter d:"))
e = int(input("Enter e:"))
f =int(input("Enter f:"))
if ((a * d - b * c) == 0):
print("the equation has no solution")
else:
x = ((e * d) - (b * f)) / ((a * d) - (b * c))
y = ((a * f) - (e * c)) / ((a * d) - (b * c))
print("x is {} and y is {}".format(x,y))
$Output:$