float c;scanf("%f",&c);printf("%d",c);return 0;为什么输入3,输出却是0呀
小数不能自动转整数输出,需要强转,可以参考下这个
在输出c的前面加个(int)c 试试