I would. Basically start with your if statement with the square root. Within that block define what happens if a is above 0 and if a is 0 then do the same thing in the else part of your block for...
Type: Posts; User: jbarke12
I would. Basically start with your if statement with the square root. Within that block define what happens if a is above 0 and if a is 0 then do the same thing in the else part of your block for...
The reason it is printing twice is because you do your check on the square and then on a instead of doing them together.