试题详情
简答题编写一个程序。从键盘输入3个整数,输出其中最大数。
  • #include
    void main()
    {
    int a,b,c,max;
    printf(“Please input 3 integers:/n”);
    scanf(“%d%d%d”,&a,&b,&c);
    max=a;
    if(b>a)max=b;
    if(c>x)max=c;
    printf(“Max=%d”,max);
    }
  • 关注下方微信公众号,在线模考后查看

热门试题