摘要: 实验任务1 #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 阅读全文
posted @ 2020-11-12 23:32 姜振晖 阅读(135) 评论(1) 推荐(1)
摘要: 实验任务1 // 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); re 阅读全文
posted @ 2020-10-29 22:03 姜振晖 阅读(185) 评论(2) 推荐(1)
摘要: 实验任务1 /*A simple C program*/ #include<stdio.h> int main() { printf("my stuno is:202083290283\n2020, come on"); return 0; } 实验任务2 /*循环字符打字*/ #include<s 阅读全文
posted @ 2020-10-15 14:51 姜振晖 阅读(147) 评论(0) 推荐(0)