求两个数最大值

来源:互联网 发布:淘宝怎么登录阿里旺旺 编辑:程序博客网 时间:2024/05/23 22:40
#include <stdio.h>
main ()
{
int a,b,max;
printf("Input a  b:");
scanf("%d,%d",&a,&b);
if(a>b)  max=a;
if(a<=b) max=b;
printf("max=%d\n",max);
}
原创粉丝点击