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];
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<i;k++){