1 /* 2 * 2-2. Write a loop equivalent to the for loop above without using && or ||. 3 */ 4 5 for (int i = 0; i<lim-1; ++i) { 6 if ((c=getchar()) == '\n') 7 break; 8 if (c == EOF) 9 break; 10 s[i] = c; 11 }