解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int hour, minute, second; second = a % 60; int minute1 = a / 60; minute = minute1 % 60; hour = minute1 / 60; System.out.print(hour + ":" + minute + ":" + second); } }
0.0分
0 人评分
采药 (C++代码)浏览:1331 |
C语言程序设计教程(第三版)课后习题6.2 (C++代码)为什么回车不算字符浏览:1203 |
拆分位数 (C++代码)用char简单粗暴,嗯浏览:1122 |
C语言程序设计教程(第三版)课后习题9.4 (C语言代码)浏览:627 |
C二级辅导-同因查找 (C++代码)(42的倍数,,所以直接递加42输出)浏览:1161 |
点我有惊喜!你懂得!浏览:4112 |
输出九九乘法表 (C语言代码)浏览:582 |
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)浏览:575 |
妹子杀手的故事 (C语言代码)浏览:1297 |
剪刀石头布 (C语言代码)浏览:1792 |