sei语言
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);
}