百思不得其解
#include<stdio.h>int main(){
printf("输入两个数字");
int a;
int b;
scanf("%d %d",&a,&b);
printf("a+b=%d\n",a+b);
printf("a-b=%d\n",a-b);
printf("a*b=%d\n",a*b);
if (a%b==0){printf("a/b=%d\n",a/b);}
else{double t;
t=a/b;
printf("a/b=%.2f",t);}
} 输入8 6 除下来是1.00哪儿错了?
[此贴子已经被作者于2018-1-28 14:06编辑过]