fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int x,n=1;
  6. scanf("%d",&x);
  7.  
  8. for(int i=1;x/n>2;i++){
  9. n *=10;
  10. printf("%d\n",i+1);
  11. }
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5324KB
stdin
132
stdout
2
3