Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub mag()
  2. Dim A As Double, B As Double, Ñ As Double, week As Integer
  3. A = 1.34
  4. B = 1.41
  5. C = 1.47
  6.  
  7. week = 0
  8. Do While week <= 3
  9.     Zp1 = Zp1 + (25 * A) * 36
  10.     week = week + 1
  11. Loop
  12. week = 0
  13. Do While week <= 3
  14.     Zp2 = Zp2 + (25 * B) * 36
  15.     week = week + 1
  16. Loop
  17. week = 0
  18. Do While week <= 3
  19.     Zp3 = Zp3 + (25 * C) * 36
  20.     week = week + 1
  21. Loop
  22.  
  23. Zp1 = Zp1 * 0.18
  24. Zp1 = Zp2 * 0.18
  25. Zp1 = Zp2 * 0.18
  26.  
  27. Debug.Print " Zp1 = " & Zp1 & " Zp2 = " & Zp2 & " Zp3 = " & Zp3
  28. MsgBox "Complite"
  29. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement