Guest User

Untitled

a guest
Apr 20th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public float calcularDivision(float dividendo, float divisor) throws Exception { ** Inicio
  2. if (divisor == 0) { ** Nodo 1
  3. throw (new Exception("Error. El divisor no puede ser 0.")); ** Nodo 2
  4. }
  5. float resultado = dividendo / divisor; ** Nodo 3
  6. return resultado; ** Nodo 4
  7. }
Add Comment
Please, Sign In to add comment