請問比較a,b,c三個數(shù)大小用c++怎么寫?
4 回答

叮當(dāng)貓咪
TA貢獻(xiàn)1776條經(jīng)驗 獲得超12個贊
int a=3,b=5,c=6;
int max=0;
if(max<a)
max=a;
if(max<b)
max=b;
if(max<c)
max=c;
cout<<max;
- 4 回答
- 0 關(guān)注
- 563 瀏覽
添加回答
舉報
0/150
提交
取消