This is a very good start. I can see that there would be a problem if I entered a resistance of 0 then selected to calculate the voltage. There should be a try/catch or division by zero verification.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is a very good start. I can see that there would be a problem if I entered a resistance of 0 then selected to calculate the voltage. There should be a try/catch or division by zero verification.