Created
January 8, 2021 14:25
-
-
Save d0mmie/fd9fde3d756bb3f87d30d0229c250f42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("First Equation") | |
m1 = int(input("Input m1: ")) | |
b1 = int(input("Input b1: ")) | |
print("Second Equation") | |
m2 = int(input("Input m2: ")) | |
b2 = int(input("Input b2: ")) | |
crossX = (b1 - b2)/(m2 - m1) | |
print("The point of intersection is at x = %.2f and y = %.2f" % (crossX, (crossX * m1 + b1))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment