Guest User

Untitled

a guest
May 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. If (txtA) = 0 Then
  2.  
  3. MsgBox "el valor de A no puede ser 0"
  4.  
  5. Else
  6.  
  7. W = ((Val(txtB) * Val(txtB)) - (4 * (txtA) * (txtC)))
  8.  
  9. If W < 0 Then
  10. MsgBox "no existen raices negativas"
  11.  
  12. Else
  13.  
  14. V = Sqr(W)
  15. x = (V - Val(txtB) / (2 * Val(txtA)))
  16. txtD = x
  17.  
  18.  
  19. End If
  20.  
  21.  
  22.  
  23. End If
  24. End Sub
Add Comment
Please, Sign In to add comment