Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public float calcularDivision(float dividendo, float divisor) throws Exception { ** Inicio
- if (divisor == 0) { ** Nodo 1
- throw (new Exception("Error. El divisor no puede ser 0.")); ** Nodo 2
- }
- float resultado = dividendo / divisor; ** Nodo 3
- return resultado; ** Nodo 4
- }
Add Comment
Please, Sign In to add comment