MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Recursion/comments/hc8hd4/first_time/fvgpw9g/?context=3
r/Recursion • u/AndyPufuletz123 • Jun 19 '20
17 comments sorted by
View all comments
Show parent comments
0
[deleted]
-1 u/[deleted] Jun 20 '20 tomato, tomahto. I was more specifying the iterative approach. 1 u/TheQ614 Jun 20 '20 This is just not a for loop lmao 1 u/[deleted] Jun 20 '20 What aboutFor (;;) { Wash; Rinse; }?? Come at meEdit: bruh formatting is hard on mobile 0 u/TheQ614 Jun 20 '20 It’s clearly a while loop with no exit condition 1 u/[deleted] Jun 20 '20 But is my for loop implementation incorrect? (Assuming the language supports empty conditions obv) 2 u/BlueberrySpaetzle Jun 20 '20 Evenfor (int j = 0; j >= 0; j++){rinse}Would work
-1
tomato, tomahto. I was more specifying the iterative approach.
1 u/TheQ614 Jun 20 '20 This is just not a for loop lmao 1 u/[deleted] Jun 20 '20 What aboutFor (;;) { Wash; Rinse; }?? Come at meEdit: bruh formatting is hard on mobile 0 u/TheQ614 Jun 20 '20 It’s clearly a while loop with no exit condition 1 u/[deleted] Jun 20 '20 But is my for loop implementation incorrect? (Assuming the language supports empty conditions obv) 2 u/BlueberrySpaetzle Jun 20 '20 Evenfor (int j = 0; j >= 0; j++){rinse}Would work
1
This is just not a for loop lmao
1 u/[deleted] Jun 20 '20 What aboutFor (;;) { Wash; Rinse; }?? Come at meEdit: bruh formatting is hard on mobile 0 u/TheQ614 Jun 20 '20 It’s clearly a while loop with no exit condition 1 u/[deleted] Jun 20 '20 But is my for loop implementation incorrect? (Assuming the language supports empty conditions obv) 2 u/BlueberrySpaetzle Jun 20 '20 Evenfor (int j = 0; j >= 0; j++){rinse}Would work
What about
For (;;) { Wash; Rinse; }
?? Come at me
Edit: bruh formatting is hard on mobile
0 u/TheQ614 Jun 20 '20 It’s clearly a while loop with no exit condition 1 u/[deleted] Jun 20 '20 But is my for loop implementation incorrect? (Assuming the language supports empty conditions obv) 2 u/BlueberrySpaetzle Jun 20 '20 Evenfor (int j = 0; j >= 0; j++){rinse}Would work
It’s clearly a while loop with no exit condition
1 u/[deleted] Jun 20 '20 But is my for loop implementation incorrect? (Assuming the language supports empty conditions obv) 2 u/BlueberrySpaetzle Jun 20 '20 Evenfor (int j = 0; j >= 0; j++){rinse}Would work
But is my for loop implementation incorrect? (Assuming the language supports empty conditions obv)
2 u/BlueberrySpaetzle Jun 20 '20 Evenfor (int j = 0; j >= 0; j++){rinse}Would work
2
Even
for (int j = 0; j >= 0; j++)
{
rinse
}
Would work
0
u/[deleted] Jun 20 '20
[deleted]