Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Dim mal1, mal2, mal3, toplammallar, toplamfiyat, indirim As Integer
  2. Dim tutar As Double
  3. toplammallar = 0
  4. toplamfiyat = 0
  5. indirim = 0
  6.  
  7.  
  8. mal1 = Val(Text1.Text)
  9. mal2 = Val(Text2.Text)
  10. mal3 = Val(Text3.Text)
  11. toplammallar = mal1 + mal2 + mal3
  12. Text8.Text = toplammallar & " adet mal almışsınız"
  13.  
  14.  
  15.  
  16. Text4.Text = mal1 * 20 & " TL"
  17. Text5.Text = mal2 * 25 & " TL"
  18. Text6.Text = mal3 * 30 & " TL"
  19. toplamfiyat = Val(Text4.Text) + Val(Text5.Text) + Val(Text6.Text)
  20. Text7.Text = toplamfiyat & " TL"
  21.  
  22.  
  23. If toplamfiyat > 30000 Then
  24. odenecektutar = toplamfiyat * 0.5
  25. MsgBox ("Ödemeniz gereken fiyat" & odenecektutar)
  26.  
  27. End If
  28. If toplammallar > 100 Then
  29. indirim = toplamfiyat * 0.1
  30.  
  31. MsgBox ("Ödemeniz gereken fiyat" & indirim)
  32.  
  33. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement