摘要: 判断某天是一年中的第几天 //求解:给出日期,判断是这年的第几天 /*思路:1涉及输入与输出的变量 2平润年月份+几号; 平闰年:if 月份 :switch 几号: 3输出 */ #include <stdio.h> int main() { int year, month, day; int su 阅读全文
posted @ 2022-10-15 19:27 行至为成 阅读(47) 评论(0) 推荐(0)
摘要: ##c代码 ###三位数 //1,2,3,4可以组成多少位不重复的三位数,并输出 #include <stdio.h> int main() { /* int g, s, b; int count = 0; for(b=1; b < 5; b++){ for(s=1; s < 5; s++){ fo 阅读全文
posted @ 2022-10-15 17:22 行至为成 阅读(506) 评论(0) 推荐(0)