首页 > 其他分享 >11.14.3

11.14.3

时间:2022-11-14 14:32:07浏览次数:40  
标签:count int 11.14 printf y1 y2 i%

#include<stdio.h>


int main()

{

int i,j;

int y1,y2,count=0;

scanf("%d%d",&y1,&y2);

for(i=y1;i<=y2;i++)

{if(i%4==0&&i%100!=0||i%400==0){printf("%d ",i);count++;

}if(count==5){printf("\n");count=0;

}

}

 

return 0;

}

标签:count,int,11.14,printf,y1,y2,i%
From: https://blog.51cto.com/u_15758636/5849101

相关文章

  • 2022.11.14 No.2 Leetcode
    重庆昨天新增已经破2000。晚上回去研究了一下家里老台式改服务器的可行性,感觉问题不大,就是可能要给家里换组电力猫了。今天降温了,要不是寝室里有个从早到晚......
  • [leetcode每日一题]11.14
    ​​805.数组的均值分割​​​给定你一个整数数组 ​​nums​​我们要将 ​​nums​​​ 数组中的每个元素移动到 ​​A​​​ 数组或者 ​​B​​​ 数组中,使得 ......
  • 【2022.11.14】pytorch的使用相关(二)
    【2022.11.04】pytorch的初始化前言参考代码来自于:Fafa-DL/Lhy_Machine_Learning:李宏毅2021春季机器学习课程课件及作业(github.com)数据集来自于:https://github.com......
  • 11.14/11.15 Apache和PHP结合 11.16/11.17 Apache默认虚拟主机
    11.14/11.15Apache和PHP结合修改Apache(httpd)主配置文件定义ServerName以消除Apache启动时所产生的警告未修改前[root@linux-5~]#/usr/local/apache2.4/bin/apachect......