Question: Using PYTHON 2. Write a program that computes the values of 1+1.0/ (1!) + 1.0 / (2!) + 1.0 / (39) + ... + 1.0
Using PYTHON
2. Write a program that computes the values of 1+1.0/ (1!) + 1.0 / (2!) + 1.0 / (39) + ... + 1.0 / (n!) ! ...+ 1.0 / (n!) (eq-1) (where i! = i x (i-1) x (i-2) (-3) x ... X 2 x 1) Your program should prompt for and read from the keyboard the value of n. So that for an input n, calculate and display the results of (eq-1) above. Keep your data as double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
