[Solved] Finding out the maximum length of input number [closed]
[ad_1] int c; int l=0; int maximum_length=-1; while ((c = getchar()) != EOF) { if (c != ‘\n’) { l++; } else { if(maximum_length < l) maximum_length = l; l = 0; } } [ad_2] solved Finding out the maximum length of input number [closed]