You are on page 1of 1

Private Sub Command1_Click()

subtotal = InputBox("ingrese subtotal", "datos")


Desc = 0
total = 0
If subtotal > 5000 Then
Desc = subtotal * 0.3
Else
If subtotal > 3000 Then
dec = subtotal * 0.2
Else
If subtotal > 1000 Then
Desc = subtotal * 0.1
End If
End If
End If
total = subtotal - Desc
MsgBox total
End Sub

You might also like