HGNET
#include <stdio.h>
 int max(int x,int y,int z)
{
if(x>=y)
if(x>=z)
return x;
else
return z;
else
if(y>=z)
return y;
else
return z;
}
main()
{
int a,b,c; 
printf("请输入3个数字:\n");
scanf("%d%d%d",&a,&b,&c);
printf("最大值为:%d\n",max(a,b,c));
}

 

分类:

技术点:

相关文章:

  • 2022-02-06
  • 2021-11-11
  • 2021-12-23
  • 2021-11-27
  • 2021-07-16
  • 2022-12-23
  • 2022-01-14
  • 2021-06-18
猜你喜欢
  • 2021-12-03
  • 2021-09-23
  • 2021-08-16
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案