Aktualizovat „du4/program.c“
This commit is contained in:
parent
9ef6f3f681
commit
0acf6d4782
@ -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++){
|
||||||
|
Loading…
Reference in New Issue
Block a user