Mar 30, 2020 at 2:35am UTC
.
Last edited on Mar 30, 2020 at 3:39am UTC
Mar 30, 2020 at 3:05am UTC
Yeah it makes sense but I don't understand where I put that in the code I have to make it work. I'm new and really can't tell the where the positions of many things should be going..
Mar 30, 2020 at 3:08am UTC
It's just simple logic:
You enter the function and you check if b ISN'T equal to 0. If it indeed isn't, you return the number that results from the math.
OTHERWISE (which is your else statement), is ONLY triggered if b IS 0. So you should output the error with your ELSE statement.
Mar 30, 2020 at 3:43am UTC
You want help don't edit your posts and delete the contents. Doing so is rude and makes people avoid helping you.