Do you see what's wrong here?Code:$ gcc -Wall foo.c foo.c: In function ‘main’: foo.c:9:9: warning: format ‘%d’ expects a matching ‘int *’ argument [-Wformat=] 9 | scanf("%d,&digit"); | ~^ | | | int * $
Compare withCode:scanf("%d,&digit");
Code:scanf("%d",&digit);