📄 2-1-1.txt
字号:
/*C程序:MyMax.c*/
#include <stdio.h>
float max(float a,float b);
main()
{ int x,y,z;
printf("输入两个数:\n");
scanf("%f%f",&x,&y);
z=max(x,y);
printf("最大数是:%f\n",z);
}
float max(float a,float b)
{ float c;
if(a>b) c=a;
else c=b;
return c;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -