c语言代码(闰年)
来源:互联网 发布:电子琴入门软件 编辑:程序博客网 时间:2024/06/07 05:57
#include<stdio.h>
#include<windows.h>
int main()
{
int year;
int leap;
printf("please enter year:");
scanf("%d",&year);
if((year%4==0&&year%100!=0)||(year%400==0))
leap=1;
else
leap=0;
if (leap==1)
printf("%d is a leap\n",year);
else
printf("%d is not a leap\n",year);
system("pause");
return 0;
#include<windows.h>
int main()
{
int year;
int leap;
printf("please enter year:");
scanf("%d",&year);
if((year%4==0&&year%100!=0)||(year%400==0))
leap=1;
else
leap=0;
if (leap==1)
printf("%d is a leap\n",year);
else
printf("%d is not a leap\n",year);
system("pause");
return 0;
}
阅读全文
0 0
- c语言代码(闰年)
- C语言代码2(闰年判断)
- C语言的闰年程序(41)
- C语言:判断闰年
- C语言-判断闰年
- C语言判断闰年
- 【C语言】判断闰年
- c语言 计算闰年
- C语言判断闰年问题
- C语言闰年判断函数
- 用c语言判断闰年
- 判断闰年C语言实现
- C语言之判断闰年
- 判断1000~2000年之间的闰年(C语言)
- 基础练习 BASIC-1 闰年判断(c语言)
- C语言编写,判断闰年的方法!
- 不同的C语言闰年判断
- C语言中闰年与素数算法
- Python异常处理中的Finally else的功能
- OpenShift Origin 排错
- 尹成 双循环链表
- acronis true image 2018 破解版 | Acronis True Image 2018(最强备份还原工具)官方中文版V2018.10640下载
- linux基本命令
- c语言代码(闰年)
- python用户管理系统
- MSComm控件接收二进制数据内存泄露解决办法
- 设计简单的贪吃蛇
- 新起点,新方向
- 17.dubbo优雅停机、主机绑定、访问日志、服务容器
- Android中MVP模式的内存泄漏解决及Retrofit2、RxJava中断网络请求(二)
- Qt5自动拷贝动态链接库文件(.dll)的方法
- [BZOJ4530]-大融合-LCT维护子树信息