用C++如何编写任意输入三个数,找出其中的最大值?

日期:2019-10-19 13:20:59 人气:1

用C++如何编写任意输入三个数,找出其中的最大值?

#includeusing namespace std;int main(){int a,b,c,max;cout>a>>b>>c;max=(a>b)?a;b;if(c>max)max=c;else;cout<<"The max of three numbers is:"<<max<<endl;return 0;}
    A+
热门评论