10-15-2009, 03:13 PM
I just put this together quickly for homework for my algerbra 1 class.
I had about 54 problems that I had to do something like find he slope for a line that goes through (4,2) and (3,2)
This program easily solves that prblem, i finished my homework in a couple of minutes
I had about 54 problems that I had to do something like find he slope for a line that goes through (4,2) and (3,2)
This program easily solves that prblem, i finished my homework in a couple of minutes
Code:
import os
os.system("clear")
while True:
print "--------------------------------------------------"
print " Slope Finder "
print "--------------------------------------------------"
a = 0
b = 0
c = 0
d = c
a = input("First x: ")
b = input("First y: ")
c = input("Second x: ")
d = input("Second y: ")
print d - b,"/",c - a