This commit is contained in:
Patrik Seman 2023-04-15 11:59:29 +02:00
parent 0ff187d496
commit e8f4a4a0ea

View File

@ -15,6 +15,7 @@ int main(){
scanf("%d\n", &pocet); scanf("%d\n", &pocet);
if(pocet<1){ if(pocet<1){
puts("Nespravny vstup"); puts("Nespravny vstup");
return 0;
} }
while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){ while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){
if(riadok[strlen(riadok)-1]=='\n'){ if(riadok[strlen(riadok)-1]=='\n'){