#include <stdio.h>int main(){int n,c = 0;scanf("%d", &n);while(n != 0){n /= 10;++c;}printf("%d", c);}
7
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!