【C语言】查找数码是否存在

写好代码点击运行为何是这个情况

img

img

#include "stdio.h"
int check(int n,int d);

int main()
{
    int num1,num2;
    printf("Enter n,d:");
    scanf("%d,%d",&num1,&num2);
    if(check(num1,num2)==1)
        printf("The digit %d is in data %d\n",num2,num1);
    else 
        printf("The digit %d is not in data %d\n",num2,num1);
}

//@@1
int check(int n,int d)
{
    for(;n/10!=0;)
    {
        if(n%10==d)
        {
            return 1;
        }
        else{
            n=n/10;
        }
    } 
    return 0;
}
//@@1

img

img

啥题目?