摘要:ex1: 方程的结果并不唯一,无法使用返回值 ex2: 1 #include <stdio.h> 2 long long fac(int n); 3 4 int main() 5 { 6 int i,n; 7 8 printf("Enter n: "); 9 scanf("%d", &n); 10 阅读全文
posted @ 2020-12-03 22:31 卷心菜投手 阅读(1) 评论(0) 推荐(0) 编辑
摘要:ex1: 1 # include<math.h> 2 # include<stdio.h> 3 4 int main(){ 5 float a,b,c,x1,x2; 6 float delta,real,imag; 7 8 printf("Enter a,b,c:"); 9 10 while(sca 阅读全文
posted @ 2020-11-19 00:14 卷心菜投手 阅读(18) 评论(1) 推荐(0) 编辑
摘要:实验结果: ex1: 1 #include <stdio.h> 2 int main() { 3 int a=5, b=7, c=100, d, e, f; 4 5 d = a/b*c; 6 e = a*c/b; 7 f = c/b*a; 8 9 printf("d=%d, e=%d, f=%d\n 阅读全文
posted @ 2020-11-01 16:59 卷心菜投手 阅读(25) 评论(1) 推荐(0) 编辑
摘要:1 #include <stdio.h> 2 int main(){ 3 4 printf("my stuno is:202083450032\n"); 5 printf("Wish 2020 less hurt"); 6 7 return 0; 8 } helloC(code) 1 /*Circu 阅读全文
posted @ 2020-10-17 14:49 卷心菜投手 阅读(25) 评论(0) 推荐(0) 编辑