摘要:
看个test.c中的代码: // 计算1 + 2 + 2^2 + 2^3 + 2^4 +... + 2^10的值 #include <stdio.h> #include <math.h> #define UPPER 10 #define BASE 2 int main() { int i = 0; 阅读全文
摘要:
程序一: #include <stdio.h> int main() { int s = 0; for (int i = 1; i <= 10; i+=3) { s += i; } printf("s = %d\n", s); printf("i = %d\n", i); return 0; } 程 阅读全文
摘要:
先来看个小程序: #include <stdio.h> int main() { double a = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117 阅读全文