帮忙看一下90分 ,想不明白哪里错了
查看原帖
帮忙看一下90分 ,想不明白哪里错了
868954
1234ss楼主2022/11/10 16:12
#include <stdlib.h>

int main()
{
    int a,b,n,c;
    scanf("%d %d %d",&a,&b,&n);
       a=a*10;
       while(n>=1)
       {
          c=a/b;
          a=a%b*10;
          n--;
       }
        printf("%d",c);

    return 0;
}
2022/11/10 16:12
加载中...