Yes.
Type: Posts; User: abhishekcoder
Yes.
Thanks everyone. @Stevan - actually the first term of my series is 1 which is not calculated while coding, so I am writing sum as 1 initially.
Thank youu so much guys! Couldn't spot the obvious :)
It is not needed, is it? Everythime the next factorial is computed the variable fact alreaddy has the value of factorial of the earlier number. I am still getting the same problem, my program, even...
Following is my program for calculating the sum of exponential series upto n terms:
e = 1/0! + 1/1! + 1/2! + 1/3! + 1/4! + 1/5!+....1/n!
#include<stdio.h>
int main()
{
int n,i,p=1;