diff --git a/du4/program.c b/du4/program.c index 1b7baea..d941c4a 100644 --- a/du4/program.c +++ b/du4/program.c @@ -4,8 +4,8 @@ #include int call(float A, float B, float C, char AC){ - if(AC=='/'&&B==0||AC!=('+'||'-'||'*'||'-')){ - return printf("CHYBA\n");; + if(AC=='/'&&B==0||AC==('+'||'-'||'*'||'-')){ + return printf("CHYBA\n"); } else if(AC=='+'){ if(A+B==C)return printf("OK\n"); @@ -22,7 +22,8 @@ int call(float A, float B, float C, char AC){ else if(AC=='/'){ if(A/B==C)return printf("OK\n"); return printf("ZLE\n"); - } + } + return printf("CHYBA\n"); } int main()