Guest User

Untitled

a guest
Nov 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Public Class Form1
  2. Dim x(2) As Single
  3. Function vaxel(ByVal c As Integer)
  4. x(0) = c
  5.  
  6. If x(0) >= 10 Then
  7. x(2) = x(0) / 10 : x(2) = Int(x(2))
  8. x(0) = x(0) Mod 10
  9. End If
  10. If x(0) >= 5 And x(0) <= 10 Then
  11. x(1) = x(0) / 5 : x(1) = Int(x(1))
  12. x(0) = x(0) Mod 5
  13. End If
  14. If x(0) <= 4 Then
  15. x(0) = x(0)
  16. End If
  17.  
  18. Return x
  19. End Function
  20. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  21. vaxel(26)
  22. MsgBox(x(2) & " " & x(1) & " " & x(0))
  23. End Sub
  24. End Class
Add Comment
Please, Sign In to add comment