摘要:
#include <stdio.h> int main() { int year; printf("请输入一个年份来判断是闰年还是平年:"); scanf("%d",&year); if(year%400==0 || (year%4==0 && year%100!=0)) { printf("%d这 阅读全文
摘要:
代码如下 #include <stdio.h> int sum(int* p, int n) { int s = 0, j; for (j = 0;j < n; j++) s += p[j]; return s; } int main() { int a[10] = { 1,2,3,4,5,6,7, 阅读全文