瀏覽代碼

Upload files to ''

Calculates the sqrt(1 + sqrt(1 + sqrt) etc...
juan.delvalle3 3 年之前
父節點
當前提交
9ff5588c41
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      sumsquare.py

+ 5
- 0
sumsquare.py 查看文件

@@ -0,0 +1,5 @@
1
+import math
2
+num = 1
3
+for i in range(2, 100):
4
+    num = math.sqrt(num + 1)
5
+    print(f'{i} sum square root is {num}')