#include <cstdio>
#include <math.h>
#include <iostream>
using namespace std;
int main(){
    int i;
    printf("This is a program counting the number of digit of a given integer.\n");
    printf("Integer:");
    scanf("%d", &i);
    printf("Number of digit: %f", floor(log10(i))+1);
    cin.get();
    cin.get();
 return 0;   
}

