From ef10f62f881a4e19b81121e7573a078cd1002b26 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 17 Mar 2022 16:05:42 +0100 Subject: [PATCH] SAD --- du3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }