Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
while True:
a = int(raw_input("Nhap a="))
b = int(raw_input("Nhap b="))
if(a is 0):
print "Phuong trinh %dx + %d = 0 vo nghiem."%(a,b)
x = -b/(a*1.0)
print "Phuong trinh %dx + %d = 0 co nghiem x = %.2f"%(a,b,x)
OK = raw_input("Ban co muon tiep tuc?(Y/N)")
if (OK is 'N'):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.