for循环

int day;
for(int month=1;month<13;month++){//打印2020全年
for(day=1;day<31;day++){
System.out.println(“2020/”+month+"/"+day);
}
}

你可能感兴趣的:(for循环)