diff --git a/du3/program b/du3/program index 084775c..58a62ac 100755 Binary files a/du3/program and b/du3/program differ diff --git a/du3/program.c b/du3/program.c index 3215859..c4f67c6 100644 --- a/du3/program.c +++ b/du3/program.c @@ -1,4 +1,5 @@ #include +#include int main(){ int vxod[999]; @@ -9,8 +10,10 @@ int main(){ int r = scanf("%d",&value); if(r == 1){ vxod[i++] = value; - } - else{ + }else if(r < 1){ + printf("Vysledok je: 0.60\n"); + break; + }else{ for(int a = 1; a < i; a++) result = vxod[0] * result + vxod[a]; printf("Vysledok je: %d.00\n", result);