#include<iostream>
using namespace std;
int main()
{
    float a,b,c,d;
    cout <<"请输入三个数:";
    cin >> a >> b >> c;
    d = a > (d = (b > c) ? b : c) ? a : d;
    cout <<"这三个数中最大的是:"<< d << endl;
    system("pause");
    return 0;
}
Last modification:December 5th, 2018 at 07:41 pm
如果觉得我的文章对您有帮助,请随意赞赏:)