finguje
This commit is contained in:
parent
a3cc4110d2
commit
d7fb98d79d
@ -4,9 +4,7 @@ int main(){
|
||||
int c;
|
||||
int line_count = 0;
|
||||
|
||||
while (1){
|
||||
c = getchar();
|
||||
while( c != EOF){
|
||||
while ((c = getchar()) != EOF){
|
||||
if (c >= 'a' && c <= 'z') {
|
||||
c = c - 'a' + 'A'; // Zmena malého písmena na veľké
|
||||
}
|
||||
@ -20,7 +18,6 @@ int main(){
|
||||
continue; // Preskočiť značky
|
||||
}
|
||||
putchar(c); // Vypíš znak
|
||||
continue;;
|
||||
}
|
||||
printf("\nPocet nacitanych riadkov: %d\n", line_count);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user