fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void)
  5. {
  6. int n;
  7. scanf("%d", &n);
  8. printf("%d", (int)log10(n) + 1);
  9. }
Runtime error #stdin #stdout 0.01s 1680KB
stdin
Standard input is empty
stdout
9