![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单问题
杨小c
这里没有人来人往
展开
-
【C 程序设计】(第四版)谭浩强 著第九章习题
编译器:Dev-c /*第1题*/ #include <stdio.h> struct date{ int year; int month; int day; }; int main(int argc, char const *argv[]) { struct date today; scanf("%d %d %d", &today.year, &today.month, &today.day); int total = 0, i; int b[12] =原创 2020-07-26 10:34:10 · 222 阅读 · 0 评论 -
【C 程序设计】(第四版)谭浩强 著第三章习题解析
编译器:Dev-C++ /*第一题*/ #include <stdio.h> #include <math.h> int main(void) { double p,r=0.09,n=10.0; p = pow ((1 + r), n); printf ("倍数为%f\n", p); return 0; //我也不知道倍数为什么会这么高.. } /*第二题*/ #include <stdio.h> #include <math.h> int m原创 2020-06-25 00:05:23 · 468 阅读 · 0 评论 -
C语言解决水仙花问题(三位数)
#include <stdio.h> int main(void) { printf("水仙花数为:\n"); for (int a = 100;a <= 999; a++) { int ge, shi, bai, shui; bai = a / 100; //百位数 shi = a % 100 /10; //十位数 ge = a - ba...原创 2020-02-23 19:49:11 · 4297 阅读 · 0 评论