program.c

This commit is contained in:
Patrik Seman 2023-02-23 15:50:08 +01:00
parent 1bbbd70c8e
commit 30d568c55b
2 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -15,18 +15,20 @@ int main(){
else if(c >= 'A' && c <= 'Z'){
c=c-'A'+'a'; //male pismeno na velke
}
else if(c=='\n'){
n++;
}
}
else{
break;
}
n++;
putchar(c);
}
printf("\n");
printf("Počet riadkov: %d\n", n/2); //vypise pocet zpouzitych znakov
printf("Počet riadkov: %d\n", n); //vypise pocet zpouzitych znakov
return 0;
}