Header Ads Widget

Responsive Advertisement

Write a python program to input the value of x and n and print the sum of the following series:

i) 1+x+x^2+x^3+ x^4+ ............x^n 

Code:

Run Code Online:

ii) 1-x+ x^2- x^3+ x^4 + ......... x

Code:

Run Code Online: iii) x + x^2 /2- x^3 /3+ x^4 /4+ ........... x^n/n

Code:

Run Code Online:

iv) x + x^2 /2!- x^3 /3!+ x^4 /4!+ ............ x^n/n!

Code:

Run Code Online:

Post a Comment

1 Comments

  1. Hello sir , I am a student of kv crpf gandhinagar, I wanted to say that I am so unlucky to be a student, while my school's principal is mr awadesh

    ReplyDelete