Изменил(а) на 'du1/program.c'
This commit is contained in:
parent
88882b82d4
commit
a2a6b8c042
@ -5,6 +5,7 @@ int main(){
|
||||
int c = 0;
|
||||
int count = 0;
|
||||
int riadok = 0;
|
||||
int pop = 0;
|
||||
while(c != EOF){
|
||||
c = getchar();
|
||||
if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){
|
||||
@ -19,16 +20,18 @@ c = tolower(c);
|
||||
printf("%c\n", c);
|
||||
riadok++;
|
||||
}
|
||||
pop++;
|
||||
}
|
||||
if(c == 10){
|
||||
}
|
||||
else{
|
||||
if(c != 10){
|
||||
if(pop == 0){
|
||||
printf("%c\n", c);
|
||||
riadok++;
|
||||
}
|
||||
}
|
||||
}}
|
||||
count = 0;
|
||||
pop = 0;
|
||||
}
|
||||
riadok--;
|
||||
printf("Počet riadkov: %d\n", riadok);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user