结果为什么是0,不是10
#include <stdio.h>
int main()
{
int a,b,c,d;
double result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a+b+c+d;
printf("%.0f\n",(int)result);
return 0;
}
#include <stdio.h>
int main()
{
int a,b,c,d;
double result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a+b+c+d;
printf("%.0f\n",(int)result);
return 0;
}
2020-02-17
举报