课后作业,求最小值等题目答案
# include<math.h>
int countdigit(int number,int digit);//不能用中文符号,要用英文符号,声名要加分号 int main(void)
{
}
int countdigit(int number,int digit)
{
int x=0; do { if(number%10==digit) //函数定义时不用格式化输出 { } else number=number/10; x++; number=number/10; int number,digit; scanf("%d%d",&number,&digit); int c=countdigit(number,digit); printf("%d",c); return 0; }while(number!=0); return x; printf("%d",x);