顯示閏年

編寫程序,顯示 21 世紀(2001 年到 2100 年)所有的閏年,每行 10 個。如下圖所示: public class Test1 { public static void main(String[] args) { // TODO 自動生成的方法存根 int count = 0; for(int year=2000;year<=2100;year++){ if((year%4==0&&ye
相關文章
相關標籤/搜索