#4v: Coding in Python {Simultaneous Equations}
print (' mx + ny + z = 0') print (' ax + by + c = 0') m=int(input("Enter m: ")) n=int(input("Enter n: ")) z=int(input("Enter z: ")) a=int(input("Enter a: ")) b=int(input("Enter b: ")) c=int(input("Enter c: ")) y = ((m*c) - (a*z))/((a*n) - (b*m)) x = ((-1 * b * y ) -c)/a print(x) print(y)