Vždyť už jsme ti to říkali.
1) Převedeš číslo na string
2) zjistíš délku stringu
Čiže čistě C postup:
int aInt = 123456;
char str[15];
sprintf(str, "%d", aInt);
// A ted délka čísla
int pocetcifer = strlen(str);
Vždyť už jsme ti to říkali.
1) Převedeš číslo na string
2) zjistíš délku stringu
Čiže čistě C postup:
int aInt = 123456;
char str[15];
sprintf(str, "%d", aInt);
// A ted délka čísla
int pocetcifer = strlen(str);