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);
if(pocet<1){
puts("Nespravny vstup");
return 0;
}
while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){
if(riadok[strlen(riadok)-1]=='\n'){