Calculate the sum of the series [ x - x^3 + x^5 + ......].
Flow chart:
File20.1.png

  
Your score is:       
Copy paste the above completed code in below IDE and run