View Single Post
Old Oct 11th, 2007, 12:06 PM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Can't you just ask the user for three numbers, e.g.

python Syntax (Toggle Plain Text)
  1. print "ax + bx = c"
  2. a = int(raw_input("a = "))
  3. b = int(raw_input("b = "))
  4. c = int(raw_input("c = "))
  5.  
  6. ...
Arevos is offline   Reply With Quote