更新 '2207/C语言精通120题.md'

This commit is contained in:
2025-02-17 19:44:55 +08:00
parent 5feafc6471
commit 2695e388c8
+11
View File
@@ -39,7 +39,18 @@ int main(void){
3.写一个程序,输入实数X,输出Y,计算<img src="https://yp.smallkun.cn/markdown/image-20250116004443767.png!compress" alt="image-20250116004443767" style="zoom:33%;" />
```c
#include <stdio.h>
int main(){
float x, y;
scanf("%f", &x);
y = 3*x*x*x+0.4*x*x-2*x/3;
printf("y=%.2f\n", y);
return 0;
}
```
4.编写程序:读入三个整数a,b,c,然后交换它们中的数,使a存放b的值,b存放c的值,c存放a的值。