feat: program to compute e

This commit is contained in:
Muhammad Nauman Raza 2025-01-30 11:18:16 +00:00
parent e5ed1a444c
commit d6deaa6c07
Signed by: devraza
GPG key ID: 91EAD6081011574B

13
euler/main.py Normal file
View file

@ -0,0 +1,13 @@
digits = int(input())
total = 0
for i in range(1, digits+1):
total += (1 + (1/i))**i
total = str(total).replace(".", "")
total = list(total)
total.insert(1, ".")
print(''.join(total))