#include
int len(char a[],int n)
{
int sum=0;
bool newint=true;
for(int i=0;i
if(a[i]>='0' && a[i]<='9')
{
if(newint==true)
{
sum++;
newint=false;
}
}
else
{
newint=true;
}
}
return sum;
}
void main()
{
char a[] ="my2932kll12''45";
printf("%d",len(a,15));
}
//n为数组长度
#include
int main()
{
int count=0;
char a[255];
scanf("%s",a);
for(int i=0;i
if(a[i]<='9' &&a[i]>='0')
{
count++;
while( a[i]<='9' &&a[i]>='0')
{
i++;
}
}
}
printf("%d\n",count);
}