This commit is contained in:
Patrik Seman 2023-04-15 11:58:10 +02:00
parent 2328b025f4
commit 0ff187d496

View File

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