Изменил(а) на 'du1/program.c'
This commit is contained in:
parent
ba86754445
commit
16b41f5381
@ -7,10 +7,8 @@ int count = 0;
|
||||
int riadok = 0;
|
||||
while(c != EOF){
|
||||
c = getchar();
|
||||
if(c == 10){
|
||||
printf("\n");
|
||||
riadok++;
|
||||
}
|
||||
if(c != 10){
|
||||
if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){
|
||||
if(islower(c)){
|
||||
c = toupper(c);
|
||||
printf("%c\n", c);
|
||||
@ -22,9 +20,20 @@ c = tolower(c);
|
||||
printf("%c\n", c);
|
||||
riadok++;
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
if(c != 10){
|
||||
printf("%c\n", c);
|
||||
riadok++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
printf("\n");
|
||||
riadok++;
|
||||
}
|
||||
count = 0;
|
||||
}
|
||||
printf("\nPočet riadkov: %d\n", riadok);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user