双分支if输入两个数比较大小输出较大数#include<iostream.h>void main(){ int x,y,max; cout<<"请输入两个数:"; cin>>x>>y; if(x>y) max=x; else max=y; cout<<"较大数为:"<<max<<endl;}