include stdio include stdlib include math int main void double printf

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
double s=1,n,w;
printf("print N\n\n");
scanf("%lf", &n);
for (w=2;w<=n;s=s + exp(log(w)*w), printf("s=%lf\n",s), w++);
system("PAUSE");
return 0;
}