首页 > 电脑
更新时间2019-09-30 08:59:31
简单的程序参考
public static void main(String[]args) {
Scanner sc=new Scanner(System.in);
int b=sc.nextInt();
int e=sc.nextInt();
while(b<=e)
{
if (((b%4==0)&&(b%100!=0))||b%400==0)
System.out.println(b);
b++;
}
相关标签:闰年,java
上一篇:数控车床怎么把程序后面的NC改成PRG,我刚做没多久不懂。知道的大侠指教下感激不尽
下一篇:ppt和ptf的不同