You are on page 1of 1

#include <bits/stdc++.

h>

using namespace std;

int main()
{
char pimpo[1000];
char acum[1000];
cin.getline(pimpo,999+1);
cout<<pimpo;
int i=0,acum1(0),acum2(0),acum3(0),j=0;
while(i<strlen(pimpo))
{
if(pimpo[i]>='0' && pimpo[i]<='9')
{
acum1++;
}
i++;
///acum1++;
}
cout<<endl<<endl;
cout<<"existen "<<acum1<<" cifras"<<endl;

return 0;
}

You might also like