编程C语言程序,实现如下功能:从键盘任意输入3个整数,求出3个数中的

2025-02-25 13:11:35
推荐回答(1个)
回答1:

#include
using namespace std;
int main()
{
int a,b,c;

int max;

cout<<"请输入三个数";

cin>>a>>b>>c;

if(a>b)

{

max = b;

if(c > max)

max = c;

}

else

{

max = a;

if(c > max)

max = c;

}

cout<<"最大值是"<
return 0;

}