My int function that removes the first digit of a number didn't return the number I expected

后端 未结 0 355
悲&欢浪女
悲&欢浪女 2020-12-18 07:52
int removeF(int n){
       static int temp,count=0;
            if(n%10==n){
        return temp;
    }
    count++;
    temp+=(n%10)*pow(10,count-1);
    return rem         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题