Home Article Practice sei语言

sei语言

2022-06-19 14:39  views:619  source:小键人4635287    

#include <iostream>
using namespace std;
int main( )
{
cout<<"This is a C++ program.";
return 0;
}
#include <iostream>
using namespace std;
int main( )
{
int a, b, sum;
cin>>a>>b;
sum=a+b;
cout<<"a+b="<<sum<<endl;
return 0;
}
#include <iostream>
using namespace std;
int max(int x,int y)
{
int z;
if(x>y)
z=x;
else z=y;
return(z);
}
int main( )
{
int a,b,m;
cin>>a>>b;
m=max(a,b);
cout<<"max="<<m<<'\n';
return 0;
}
#include <iostream>
using namespace std;
int main( )
{
int max(int x,int y);
int a,b,c;
cin>>a>>b;
c=max(a,b);
cout<<"max="<<c<<endl;
return 0;
}
int max(int x,int y)
{
int z;
if(x>y) z=x;
else z=y;
return(z);
}



Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)