C语言程序:输入1-12输出该月日历 2018年的答:include<stdlib.h>#include<stdio.h>int main(){int n, i;int month[12]={31,28,31,30,31,30,31,31,30,31,30,31};int day = 0, days;printf("Please input n:");scanf("%d", &n);if(n==0)exit(0);for(i = 0; i < n-1; i++){day+=month[i];}days = day % ...
C语言 日历表 怎么将各月放在一排?答:int mon_day[]={31,28,31,30,31,30,31,31,30,31,30,31};int week[3][5][7]={0};int DaySearch(int year,int month,int day){ int c=0;float s;int m;for(m=1;m<month;m++)c=c+mon_day[m-1];c=c+day;s=year-1+(float)(year-1)/4+(float)(year-1)/100+(...