.
This commit is contained in:
parent
0ff187d496
commit
e8f4a4a0ea
@ -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'){
|
||||||
|
Loading…
Reference in New Issue
Block a user