diff --git a/du4/program.c b/du4/program.c index a721101..fa37904 100644 --- a/du4/program.c +++ b/du4/program.c @@ -5,23 +5,23 @@ int call(double A, double B, double C, char AC){ if(AC=='/'&&B==0){ - return printf("CHYBA");; + return printf("CHYBA\n");; } else if(AC=='+'){ - if(A+B==C)return printf("OK"); - return printf("ZLE"); + if(A+B==C)return printf("OK\n"); + return printf("ZLE\n"); } else if(AC=='-'){ - if(A-B==C)return printf("OK"); - return printf("ZLE"); + if(A-B==C)return printf("OK\n"); + return printf("ZLE\n"); } else if(AC=='*'){ - if(A*B==C)return printf("OK"); - return printf("ZLE"); + if(A*B==C)return printf("OK\n"); + return printf("ZLE\n"); } else if(AC=='/'){ - if(A/B==C)return printf("OK"); - return printf("ZLE"); + if(A/B==C)return printf("OK\n"); + return printf("ZLE\n"); } }