打印闰年
for (int i=2000;i<=2100;i++){
if ((i%4==0&&i%100!=0)||i%400==0){
System.out.println("i = " + i);
}
}
打印乘法表
for (int i=1;i<=10;i++){
for (int n=1;n<=i;n++){
System.out.printf(n+"*"+i+"="+i*n+"\t");
}
System.out.println("");
}