+ 2
I'm writing math codes that are useful to me, but how can I let someone else assign a value to a variable in my codes?
8 Respostas
+ 1
Thanks man
+ 1
I tried it, but it didn't work for multiple variables. How would I get that to work like a, b, and c
+ 1
a = int(input("Assisgn value of a: "))
b = int(input("Assisgn value of b: "))
c = int(input("Assisgn value of c: "))
print((-b + (b ** 2 - 4 * a * c) ** .5) / 2 / a)
print((-b - (b ** 2 - 4 * a * c) ** .5) / 2 / a)
There is my code but it says I need to split into different lines and I'm not sure what to do.
0
Could you show me by editing my code