大神帮忙看看哪里错了,a,b的限制条件是非负整数,小于100
#include<stdio.h>
int main()
{
int a ,b;
int x=a+b,y=a-b,z=a*b;
scanf("%d %d",&a,&b);
printf("%d + %d = %d\n",a,b,x);
printf("%d - %d = %d\n",a,b,y);
printf("%d * %d = %d\n",a,b,z);
double w=a/b;
if
(w=a%b==0) { w=a/b;
printf("%d / %d = %d\n",a,b,w);
}
else {
w=a*0.1/b;
}
printf("%d / %d = %.2f\n",a,b,w);
return 0;
}