fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int p1=98455;
  6. int i_max=0;
  7. while ((p1 /= 10) > 0) i_max++;
  8. i_max = i_max + 1;
  9. cout << i_max;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
5