您的位置:首页 > 其它

双分支条件语句

2017-11-21 11:10 162 查看
#include <stdio.h>

#include <stdlib.h>

int main()

{

 int a,b,max;

  printf("input a,b:");

  scanf("%d,%d",&a,&b);

  if(a>b)

    max=a;

  else

    max=b;

  printf("max=%d\n",max);

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: