过程对了,结果错了,我不理解

img

img


为什么结果错了

把t的类型改成float呢?
int n,t;改成
int n;
float t;

类型不一样,是故意的吗?