Aktualizovat „du4/program.c“

This commit is contained in:
Pavlo Tverdyi 2020-04-02 16:08:24 +00:00
parent a813578098
commit 08f883d31b

View File

@ -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;
}