diff --git a/du4/program.c b/du4/program.c index a5e2978..865d4a4 100644 --- a/du4/program.c +++ b/du4/program.c @@ -54,12 +54,13 @@ int main() char str[100][100]; int i =0; int j =0; - while((c=getchar())!=EOF){ - if(c=='\n'){ + char b ; + while((b=getchar())!=EOF){ + if(b=='\n'){ j=0; i++; } - str[i][j]=c; + str[i][j]=b; j++; } for(int k=0;k