小姐姐杀手


私信TA

用户名:sssssss

访问量:733

签 名:

等  级
排  名 101323
经  验 68
参赛次数 0
文章发表 2
年  龄 0
在职情况 学生
学  校 ZJDX
专  业

  自我简介:

解题思路:可以用if条件句来解决比较大小。

注意事项:注意scanf函数的使用。

参考代码:

#include <stdio.h>

int main()

{ int a,b,c,max;

  printf("please input a,b,c: \n");

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

  max=a;

  if (max<b);

  max=b;

  if (max<c);

  max=c;

  printf("The largest number is %d\n",max);

  return 0;

}



 

0.0分

0 人评分

  评论区