c面試題(1)

第一題:給你任意三個整形數據,找出其中最大的一個整形數ios //給任意三個整形數據,找出其中最大一個整形數 #include<iostream> using namespace std; void main() { int a,b,c,max; cout<<"請輸入a,b,c"<<endl; cin>>a>>b>>c; if(b>a) { if(c>b) { max=c; } else { ma
相關文章
相關標籤/搜索