[Solved] Finding out the maximum length of input number [closed]
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; } } solved Finding out the maximum length of input number [closed]