G
This commit is contained in:
parent
45a1dc21e6
commit
cf1436966a
@ -9,10 +9,6 @@ int main(){
|
|||||||
int input;
|
int input;
|
||||||
|
|
||||||
while (count < FIELD_SIZE) {
|
while (count < FIELD_SIZE) {
|
||||||
if (scanf("%d", &input) != 1) {
|
|
||||||
printf("Chyba pri nacitavani. Koniec vstupu.\n");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (input < 0) {
|
if (input < 0) {
|
||||||
printf("Ukoncenie zadavania.\n");
|
printf("Ukoncenie zadavania.\n");
|
||||||
break;
|
break;
|
||||||
@ -23,7 +19,7 @@ int main(){
|
|||||||
|
|
||||||
printf("Vypisane hodnoty:\n");
|
printf("Vypisane hodnoty:\n");
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
printf("Sutaziaci c. %d vypil %d poharov.\n", i + 1, field[i]);
|
printf("Sutaziaci č. %d vypil %d pohárov.\n", i + 1, field[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user