import java.util.Scanner;
public class MQ5 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个数");
long a = sc.nextLong();
System.out.println(a/3600+":"+(a%3600)/60+":"+(a%3600)%60);
}
}
2022-08-17 10:55:26
import java.util.Scanner;
public class MQ5 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个数");
long a = sc.nextLong();
System.out.println(a/3600+":"+(a%3600)/60+":"+(a%3600)%60);
}
}
下一篇:将秒数转换为时分秒格式