为啥不对啊
#include <stdio.h>
int main()
{
double num = 2.5;
int num1 = (int)num;
printf("num的整数部分是%f\n", num);
printf("num1的整数部分是%d\n", num1);
return 0;
}
#include <stdio.h>
int main()
{
double num = 2.5;
int num1 = (int)num;
printf("num的整数部分是%f\n", num);
printf("num1的整数部分是%d\n", num1);
return 0;
}
2021-01-05
举报