float func(float x, int N) { int i = 0; float p = 1., s = 1.; while(i<N) s+=p*=x/++i; return s; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment