"%e"是否仅对应浮点型;输出时强转作对比
程序代码:
#include "stdio.h" int main() { long long sum=0,multiply=1; int n; for(n=1;n<=20;n++) { multiply*=n; sum+=multiply; } printf("%e\n",(double)sum); return 0; }
-------------------------------若有不当之处,敬请谅解-------------------------------