Monday, October 4, 2010

Equation ax + b = cx +d

x= int (rand*10+2)
a= int (rand*10+2)
b= int (rand*10+2)
c= int (rand*10+2)
d=a*x+b-c*x
print a+"x+"+b+"="+c+"x"+d
input "What is x",s$
print x

No comments:

Post a Comment