'1.將輸入之秒數轉換成「時:分:秒」。如輸入 10000,則輸出 02:46:40
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim t = 10000
Dim sec = t Mod 60
Dim minute = t \ 60 Mod 60
Dim hour = t \ 3600
MsgBox(hour & ":" & minute & ":" & sec)
End Sub
End Class
沒有留言:
張貼留言