- 博客(3)
- 收藏
- 关注
原创 【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
原创 【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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人