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