All pastes #566499 Raw Edit

bordy

public python v1 · immutable
·published 2007-06-14 13:54 UTC
rendered paste body
#!/usr/bin/env python# file name quadratic.pyrunning = Truewhile True:    a = input('What is the number before x squared? (A) ')    b = input('And what is the number before x? (B) ')    c = input('And finally, what is the number by itself? (C) ')    parent = (b*b)-((4*a*c)**(1/2))    print (-b + parent)/(2*a)    print (-b - parent)/(2*a)    Ask = raw_input('Do you wish to evaluate another expression? (y/n) ')    if Ask == 'y':        print 	print 	print 'Alrighty then!'	print '______________________'	print    elif Ask == 'n':        print 'Peace Out!'	print 'Done.'	break