The e constant is given by: sum [0, inf] of { 1/n! }. This number is generally fixed to 2.72. This program calculates this infite series and prints it with a desired number of decimal values.
Here´s the link for my gitHub code.
Let me know if you have any questions.
Cheers.
Euler constant – WSQ14 by Rodrigo Hernández is licensed under a Creative Commons Attribution 4.0 International License.