纯小白,求助大佬
如下,他一直告诉我“整数除以0,”我不会是判断了吗。还有我写的其他错误跪求指正!#include<stdio.h>
int main()
{
int a,b;
double sum ,diference,product,quotient;
printf("piease inpuut a and b:");
scanf("%d,%d",&a,&b);
sum=a+b;
diference=a-b;
product=a*b;
if (b=0);
{
printf("b is 0,quotient is invalid.\n");
}
else
quotient=a/b;
printf("Quotient=%d","ient);
printf("The sum is %d;\n", & sum);
printf("The sum is %d;\n",&diference);
printf("The sum is %d;\n",&product)
return 0;
}