Threadser.net
數據
關鍵字
功能建議
Following
Threads
Login
串文
串文鏈結
2024-11-04 20:17
Print the numbers from 1 to 100. But without using any loops (for, while, do-while). What’s your approach?
讚
23
回覆
143
轉發
3
作者
Ramon Sorage
rsorage
粉絲
串文
91+
讚
回覆
轉發
24小時粉絲增長
發文前
35
發文後24小時
35
變化
0 (0.00%)
互動率
(讚 + 回覆 + 轉發) / 粉絲數
Infinity%
回覆 (BETA)
最先回覆的內容
發文後
用戶
內容
一小時內
Marek | Editor & Programátor
nytrdev
def num1_10(i): print(i) if i == 100: return num1_10(i+1) num1_10(1)
2 小時內
hub_bub
Type 1 in excel and drag that box to row 100 😛
6 小時內
Atharv Sawarkar
athdoesnotcode
def a(target, now=1): if now > target: return now print(now) a(target, now+1) a(100)
21 小時內
Nick
intrinsic_nerd
In c# with recursion where ‘i’ is the number to reach: void exec(int i){ if (i != 1) exec(i-1); Console.WriteLine(i); }
一天內
Daniel Pereira Volpato
volpato.daniel
"evil" GOTO