#include <stdio.h> #include <ctype.h> int main(void) { char *s = "2def35adh25 3kjsdf 7/kj8655x"; int n = 0; printf("%s\n", s); while(*s != 0) { if(isdigit(*s)) n++; s++; } printf("%d \n", n); return 0; }