#include <stdio.h>#include <math.h> int main(void){ int n; scanf("%d", &n); printf("%d", (int)log10(n) + 1);}
Standard input is empty
9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!