duanqibo

/*
============================================================================
Name : max.c
Author : duanqibo
Version :
Copyright : Your copyright notice
Description : 输入三个整数,找出最大值
============================================================================
*/


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int a,b,c;
int max;
setbuf(stdout,NULL);
printf("请输入三个整数:");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
max=a;
else
max=b;
if(max>c)
printf("三个数中最大数是:%d",max);
else
printf("三个数中最大数是:%d",c);
return 1;
}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-04-18
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-11
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案