-
Homework
Hello there,
my teacher gave us a homework at C but i couldnt figure that out
can any one please solve it? or give me directions
Thank you in advance.
ln n/e^n (from n=1 to infinity)
Write a C program which will find the sum of the N-terms of the above
convergent series. The program will consist of a MAIN function and a
function.
Within the MAIN function.
. Number of terms N will be read from the standard input.
. N will be passed to the function as an argument.
. Sum of the N terms(return value from the function) will be printed.
Within the function.
. Sum of the N terms of the given series will be calculated and returned
to the MAIN function.
-
-
ok sorry. i didnt read that :(.
-
This is not a difficult assignment and you can easily get it done with guidance from us, but you have to show some work of your own, we will not do the entire thing for you. Even if you do get the answer from somewhere else, trust me mate, it will be a total waste of your time on the long run. Nobody can learn for you but yourself. You just need to get yourself to start.
I suggest you start off with a program skeleton identifying the functions you need, the variables you will need, the includes and how you plan to approach the problem. Then, we will move on from there.