diff --git a/du3/program b/du3/program index c6cec6b..a239296 100755 Binary files a/du3/program and b/du3/program differ diff --git a/du3/program.c b/du3/program.c index d30ecb2..b3a06e4 100644 --- a/du3/program.c +++ b/du3/program.c @@ -4,14 +4,16 @@ int main(){ int result = 0; int value = 0; int vxod[999]; - //i`nt a = 0; - for(int i = 0; i < 4; i++){ - scanf("%d",&value);; + //int a = 0; + //int b = 999; + for(int i = 0; i < 999; i++) + vxod[i] = 0; + for(int i = 0; i < 999; i++){ + scanf("%d",&value); vxod[i] = value; - //a = i; } - //result = vxod[0]; - for(int i = 1; i < 4; i++){ + + for(int i = 1; i < 999; i++){ result = vxod[0] * result + vxod[i]; } printf("Vysledok je: %d.00\n", result); diff --git a/du3/test b/du3/test index cd4c2fb..6ef1c58 100755 Binary files a/du3/test and b/du3/test differ diff --git a/du3/test.c b/du3/test.c index 07ace11..a69198d 100644 --- a/du3/test.c +++ b/du3/test.c @@ -1,8 +1,11 @@ #include int main(){ - for(int i = 0; i < 2; i++){ - printf("%d", i); - } + int c = 0; + char a = 'a'; + if(a >= 0 && a <= 255) + printf("yes\n"); + else + printf("no\n"); return 0; }