diff --git a/du4/program.c b/du4/program.c index 9d29419..ed5a8fa 100644 --- a/du4/program.c +++ b/du4/program.c @@ -24,7 +24,7 @@ int call( double A, double B, double C, char AC){ double Cc=A/B; Cc=(int)(Cc*100000); Cc=(float)Cc/100000; - if(Cc==C || A/B==C)return printf("OK\n"); + if(Cc==C || A/B==C || cC==C)return printf("OK\n"); return printf("ZLE\n"); } return printf("CHYBA\n");