求解为什么无论输入什么值都是1.00

img

img

add返回值定义为float, s定义为float
float add(int a)
{
float static s=1.0;
s=s*(1.0/a);
return s;
}