参考代码:
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); //从什么到什么一共经过了几天 System.out.println(LocalDate.of(sc.nextInt(), sc.nextInt(), sc.nextInt()).until(LocalDate.of(sc.nextInt(), sc.nextInt(), sc.nextInt()), ChronoUnit.DAYS)); } }
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:732 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:1292 |
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:614 |
字符逆序 (C语言代码)浏览:615 |
打印十字图 (C语言代码)浏览:2710 |
星期判断机 (C语言代码)浏览:859 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:540 |
川哥的吩咐 (C语言代码)浏览:611 |
时间转换 (C语言代码)浏览:627 |
C语言程序设计教程(第三版)课后习题12.6 (C语言代码)浏览:661 |