楼上的哪里是C#的代码啊,明明是java的,别忽悠楼主,我的才是真正的C#代码,
12345678 | 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(); |