t=s%n???还不让改?n是浮点数啊t=s/n啊
while(t>=num)改成while(fabs(t) >=num) t=s%n;改成 t=(float)s/n;
如图:
t=s%n改为t=s/n