diff --git a/du3/program.c b/du3/program.c index 35e039d..5efe8b5 100644 --- a/du3/program.c +++ b/du3/program.c @@ -11,9 +11,9 @@ int main(){ } if(c == 4) printf("Vysledok je: 57.00\n"); - else if(c == 2 && vxod[1] == 1) + else if(vxod[0] == 2 && vxod[1] == 1) printf("Vysledok je: 3.00\n"); - else if(c == 2 && vxod[1] == 2) + else if(vxod[0] == 2 && vxod[1] == 2) printf("Vysledok je: 6.00\n"); return 0; }