Aktualizovat „du4/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-02 23:47:55 +00:00
parent 9ef6f3f681
commit 0acf6d4782

View File

@ -54,12 +54,13 @@ int main()
char str[100][100]; char str[100][100];
int i =0; int i =0;
int j =0; int j =0;
while((c=getchar())!=EOF){ char b ;
if(c=='\n'){ while((b=getchar())!=EOF){
if(b=='\n'){
j=0; j=0;
i++; i++;
} }
str[i][j]=c; str[i][j]=b;
j++; j++;
} }
for(int k=0;k<i;k++){ for(int k=0;k<i;k++){