📄 2-1-2.txt
字号:
//C++程序:MyMax.cpp
#include <iostream.h>
float max(float a,float b);
main()
{ float x,y,z;
cout<<"输入两个数:\n";
cin>>x>>y;
z=max(x,y);
cout<<"最大数是:";
cout<<z<<'\n';
}
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 + -