就是3/2不是应该等于1吗,怎么才能等于1.5
printf("%f",3/2.0);
int a = 3;
int b = 2;
float c = (float)a/b;
题主, 请采纳正确的答案。 你会看到一个 ‘采纳’ 按钮, 点它即可。