Aktualizovat „du4/program.c“
This commit is contained in:
parent
a813578098
commit
08f883d31b
@ -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){
|
void divi(double a, double b, double c,char ac, int result[],int count){
|
||||||
float cc=a/b;
|
float cc=a/b;
|
||||||
double Cc=(int)((a/b)*100000);
|
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;
|
else result[count]=2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user