Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Function Square2(AnyNumber)
  2.  
  3. 'return the square of any integer
  4. Square2 = AnyNumber * AnyNumber
  5.  
  6. End Function
  7.  
  8. Function Discount(quantity, price)
  9. If quantity >= 100 Then
  10. Discount = quantity * price * 0.1
  11. Else
  12. Discount = 0
  13. End If
  14. Discount = Application.Round(Discount, 2)
  15. End Function
  16.  
  17. Function Decrement(i As Integer) As Integer
  18. Decrement = i - 1
  19. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement