怎么回事啊?我对了答案完全按着答案来的?怎么提示还是只有12分??
匿名课官 核心会员 2016-09-18 16:35:58
2022 3 0

改错题第二题

问题来自: 填空题真题

共 3 个回答

    悟空 人气之神 3215天前

    麻烦把你写的程序发一下

    匿名课官 核心会员 3214天前

    回复 悟空

    #include  <stdio.h>

    unsigned long fun(unsigned long  n)

    {  unsigned long  x=0, s, i;   int  t;

       s=n;

    /**********found**********/

       i=1;

    /**********found**********/

       while(s>0)

       {  

      t=s%10;

          if(t%2==0)

     {

    /**********found**********/

             x=x+t*i;  

    i=i*10;

          }

           s=s/10;

       }

       return  x;

    }

    main()

    {  unsigned long  n=-1;

       while(n>99999999||n<0)

      { printf("Please input(0<n<100000000): ");  scanf("%ld",&n);  }

      printf("\nThe result is: %ld\n",fun(n));

    }


    悟空 人气之神 3214天前

    无误,可能是你之前提交后只有12分时,看了答案;

    系统只记录未看答案前的最高分



您还没有登录,所以不能回复该问题
我要回复

  • 0

    点赞

  • 扫一扫分享朋友圈

    二维码

  • 分享

相关问题