#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
//for (int i = 1; i <= 10; i++)
//{
// if (i % 2 != 0) // Đang so sánh với true, tức là 1 số khác 0, ở đây hiểu là i % 2 Khác 0
// {
// continue;
// }
// printf("%d\n", i);
//}
int n;
printf("\nNhap vao n = ");
scanf_s("%d", &n);
/*int dem = 0;
for (; n != 0;)
{
n /= 10;
dem++;
}
printf("\n So chu so: %d", dem);*/
int SoChuSo = n == 0 ? 1 : (int)log10((float)abs(n)) + 1;
printf("\n So luong chu so: %d", SoChuSo);
_getch();
return 0;
}