摘要: #include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, 阅读全文
posted @ 2020-11-12 23:09 wjsx 阅读(80) 评论(2) 推荐(0)
摘要: // ex1.cpp #include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0 阅读全文
posted @ 2020-10-29 22:30 wjsx 阅读(253) 评论(2) 推荐(0)
摘要: /*A simple C program*/ #include <stdio.h> int main() { printf("Hello C\n"); return 0; } /* 循环打印字符 */ #include <stdio.h> int main() { while(1) printf(" 阅读全文
posted @ 2020-10-15 20:11 wjsx 阅读(47) 评论(2) 推荐(0)
摘要: /*A simple C program*/ #include <stdio.h> int main() { printf("Hello C\n"); return 0; } // 测试你是哪一类学习者 #include <stdio.h> int main() { int answer; char 阅读全文
posted @ 2020-10-15 19:49 wjsx 阅读(79) 评论(0) 推荐(0)