热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_59367964
桑稚远方~
3 年前
trueweixin_59367964

分享一些跟chatgtp有关的链接

大学生的日常
CSDN App 扫码分享
分享 1
1
2
打赏
  • 复制链接
  • 举报
下一条:
邢语洛0223956第六题:#include <stdio.h> int main() { int year=0; int m=0; for (year=1000;year<2000;year++) { if((year%400==0)||((year%4==0)&&(year%=100!=0))) { printf("%d",year); m=m++; if(m%3==0) printf("\n"); } } return 0; }第十题:#include<stdio.h> int main() { int year,month,day; printf("请输入年号和月份 如(2000 8):"); scanf("%d,%d",&year,&month); if(1<=month&&month<=12) { case 2: if ((year%400==0)||((year%4==0)&&(year%100!=0))) day=29; else day=28;break; case 1: case 3: case 5: case 7: case 8: case 10: case 12:day=31;break; case 4: case 6: case 9: case 11:day=30;break; } return 0; }第二十四题:#include <stdio.h> int main() { int m, n, sum = 0; for (m = 100; m< 1000; m++); for (n = 1; n <= m; n++); if (m % n== 0); sum = sum + 1; if (m== sum); printf("%d", m); return 0; }第二十八题:#include <stdio.h>int main(){ float i=1.0; float s=0; for(i>=1.0;i<100000;i++) { s=s+1/i; } printf("%f",s); return 0;}
立即登录