#include <iostream>using namespace std; int main(){ //求兩數中的大者? int a,b; cin>>a>>b; if(a>b) cout<<"The max number is:"<<a; else cout<<"The max number i ...
#include <iostream>
using namespace std;
int main(){
//求兩數中的大者?
int a,b;
cin>>a>>b;
if(a>b)
cout<<"The max number is:"<<a;
else
cout<<"The max number is:"<<b;
}
method two:
#include <iostream>
using namespace std;
int main(){
//求兩數中的大者?
int a,b,max;
cin>>a>>b;
if(a>b)
max=a;
else
max=b;
cout<<"The max number is:"<<max;
}