#include "stdio.h"int main(int argc,char *argv[]){ int n,m,s; for(s=0,m=n=1;n<=10;n++){ m*=n; s += n&1 ? m : -m; } printf("The result is %d\n",s); return 0;}
运行结果: