.
Повернутися
int NumDig(int a) { if (a<=0)return -1; int k=0; do { k++; a=a/10; }while(a!=0); return k; }