close
金幣兌換程式碼
Private Sub B1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles B1.Click
Dim m, s50, s10, s5, s1
m = CInt(T1.Text)
s50 = m \ 50
T2.Text = s50
s10 = (m - s50 * 50) \ 10
T3.Text = s10
s5 = (m - s50 * 50 - s10 * 10) \ 5
T4.Text = s5
s1 = (m - s50 * 50 - s10 * 10 - s5 * 5) \ 1
T5.Text = s1
End Sub
End Class
全站熱搜
留言列表