c语言编程题:输入一个日期,计算出该日期是星期几?
标题
c语言编程题:输入一个日期,计算出该日期是星期几?
源代码如下:
/*
* author:X
* date:2021/9/17 18:49
* description:输入一个日期,计算出该日期是星期几?
*/
#include <stdio.h>
int leap(int year);
int main()
{
int year, month, day, i;
int m[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
原创
2021-09-17 18:55:57 ·
8941 阅读 ·
2 评论