int second = 107653; int day = second / (3600 * 24); int hour= second % (3600 * 24) /3600; int min = second % 3600 / 60; int sec = second % 60; Console.WriteLine("107653 秒是 {0}天{1}小時{2}分鍾{3}秒", day, hour, min, sec); Console.ReadLine();
int second = 107653; int day = second / (3600 * 24); int hour= second % (3600 * 24) /3600; int min = second % 3600 / 60; int sec = second % 60; Console.WriteLine("107653 秒是 {0}天{1}小時{2}分鍾{3}秒", day, hour, min, sec); Console.ReadLine();
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。