双分支条件语句

来源:互联网 发布:机器手编程语言 编辑:程序博客网 时间:2024/06/05 22:52
#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);
}