+ 36
☢️⚗️⚗️Chemical equation balancer. ⚖️⚖️☢️
Write a program( in any code language) that will balance any given chemical reaction (the equation being relevant). Example : H2+Cl2 =HCl Output : H2+Cl2=2HCl The user must input using valid notations. For more information: https://www.wikihow.com/Balance-Chemical-Equations
7 Answers
+ 9
https://code.sololearn.com/cps9lMGHrRP1/?ref=app
+ 109
Use brute force 🤗
+ 19
I don't think we need to apply brute force. There must be a more elegant way......
+ 8
Solve a diophantine equation
+ 7
Use this extended to more variables https://code.sololearn.com/ca6FkuqzLXdT/?ref=app
+ 4
Am I wrong or must such code have like a whole periodic table inside, to get like the electrons in shells to calculate the chemical equation for a salt for example?
+ 4
thank you marked my answer as best answer
😉😉