You can write a recursive algorithm for repeating something several times; equally you can write a recursive algorithm for addition (using System.Math; double Add(double a, double b){ if (b < a * Math.Pow(2, -8)){ return a; }else{return Add(a + Math.Pow(2, Math.Floor(Math.Log2(b))));}) but that doesn't make it any way inherently recursive or best expressed through recursion, which is the point of the sub.
8
u/pinkpanzer101 Nov 16 '22
Simply repeating something isn't recursion.
10
u/Bonnie_190 Nov 15 '22
r/ontheledgeandshit
2
u/SomeDude3599 Nov 15 '22
Joe Biden
5
u/Personal_Comfort_722 Nov 15 '22
Maaaahht Deeehhmeeen
2
u/th1ckStud3nt Nov 16 '22
Bob Dole
2
u/SuperNerdEric Nov 16 '22
This is just you replying to yourself…
1
u/AutoModerator Nov 15 '22
int main() { main(); }
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/SuperSaberman7 Nov 16 '22
Obamna 🥺
SODA‼️🥤
0
u/sackboy54321 Nov 15 '22
Me reading this https://youtube.com/shorts/mJPOGx1CWHE
0
u/[deleted] Nov 16 '22
joe biden
0
u/TheFlyingToasterr Nov 16 '22
Boe Jiden
-1
u/Personal_Comfort_722 Nov 15 '22
Maaaahht Deeehhmeeen
0
u/[deleted] Nov 16 '22
[deleted] — view deleted comment
7
u/[deleted] Nov 15 '22
[removed] — view removed comment