#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
© 允许规范转载