#include< math.h>
void main( )
{
int x, n, fact, i, j;
float sum=1;
clrscr( );
printf("Enter the 'x' value:");
scanf("%d",&x);
printf("\nEnter the 'n' value:");
scanf("%d",&n);
for(i=1; i< =n ; i++)
{
fact=1;
for( j=i ; j >=1; j--)
fact=fact*j;
sum=sum+(pow(x,i )/ fact);
}
printf("\nSum of the series : %f ",sum);
getch( );
}
Note:- If any errors,, plz mail to me.
Wednesday, February 17, 2010
Subscribe to:
Post Comments (Atom)
can u please give this code
ReplyDelete1! + 2! + 3! + 4!
Thanks,
shweta
#include
Delete#include
void main()
{
int num,i,fac=1;
printf("Enter The Number Of Which You Want Factorial ");
scanf("%d",&num);
for(i=1;i<=num;i++)
{
printf("num=%d\n",i);
fac*=i;
}
printf("Factorial = %d",fac);
}
main()
Delete{ int no,fac=1,i=1;
int long sum=0;
printf("enter no of terms);
scanf ("%d",no);
for(i=1; i<=no ;i++)
{ fac*=i;
sum=sum+fac;
}
printf("sum of fac seriese=%ld",sum);
return 0;
}
}
1+x+x2/2! ---xn/n! program res is 0
ReplyDeletewhy i will given x=3 n =2 so res is=0
canu chnage the program mail me nrk043@gmail.com
Good Stuff. Very... helpful
ReplyDeleteYour site is very good.
ReplyDeleteplease help me to find logic of the series
ReplyDelete1,3,6,11,20,37........
if any one solve this problem please mail me logic code in
supriyamuni@gmail.com
what is the right state ment of x = x + y =<30
ReplyDeletex = x + y =<30;
ReplyDeleteGet easy Free Hindi Ebooks of Programming Languages PHP,JAVA, HTML5 and CSS3,JAVASCRIPT,JQUERY,C,C++,C#(SHARP),DATA STRUCTURE,VB6 etc.
ReplyDeleteGet,Learn & Do & Earn Huge Income.
For get the ebooks free in pdf format,click on below link:
Free Downloads Ebooks of Programming Languages in Hindi in pdf format
Some important c pgms
ReplyDeletehttp://www55.zippyshare.com/v/96361476/file.html
Good stuff..
ReplyDeletewell explanation of basic points.
Its simply superb.Feeling good to share the link to practice. Thanks
ReplyDeleteGreat post. Its pretty useful..
ReplyDeleteyou can find more than 100 basic programs here : c programs
My latest blog post : Best c compiler for windows
c programming in linux
For Best C Programs with Full Explanatons..
ReplyDeleteVisit Here ►► Lightning Code
The logic you use is wrong
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteit is very useful for me
ReplyDeleteHere is blog for basic C and C++ programs
ReplyDeleteList of C and C++ Programs
C and C++ based programs
C tutorial with free and simple example on Data Types & Variables, Conditionals, Loops, Arrays & Strings etc. Here you can download simple and easy online c tutorial for beginners .C Programming online test.
ReplyDeleteVery informative post, I love C language.
ReplyDeletenot giving right result
ReplyDeleteNice Blog. To see more interesting C programs visit:
ReplyDeletehttp://cprogrampracticals.blogspot.in/
C programs given on following link are interesting:
Deletehttp://cprogrampracticals.blogspot.in/p/special-c-programs.html
C program basics given on following link are good:
ReplyDeletehttp://cprogrampracticals.blogspot.in/p/basic-concepts.html
Very Informative article you have described everything in a brilliant way. This is really useful arrticle for begginer learner. Appreciated!
ReplyDeletebuffalo web design service is available in a proper way. You can develop your website in reasonable from Crystal Tech Solution.
i found your article very intresting. really nice post. keep posting this type of important post. lots of love from rajasthan
ReplyDeletealso help me to improve my backlinking i am adding my website link.
Tramadol 50mg
This comment has been removed by the author.click here for mor info...
ReplyDeleteA good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
ReplyDeleteI wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging effortsclick here