diff --git a/du4/program.c b/du4/program.c index f5f403d..70a1e3d 100644 --- a/du4/program.c +++ b/du4/program.c @@ -25,7 +25,7 @@ void multi(double a, double b, double c,char ac, int result[],int count){ void divi(double a, double b, double c,char ac, int result[],int count){ float cc=a/b; double Cc=(int)((a/b)*100000); - if(Cc==c || a/b==c || cc==(int)(c*100000)) result[count]=1; + if(cc==c || a/b==c || Cc==(int)(c*100000)) result[count]=1; else result[count]=2; }