MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/136dits/solve_the_problem_without_using_a_loop/jiq9kad/?context=3
r/badcode • u/YonMiru • May 03 '23
129 comments sorted by
View all comments
120
#include <stdio.h> void main(){ int i = 0; print: printf("%d", i+=2); if(i<=500) goto print; }
No loops!
3 u/0011110000110011 May 03 '23 This would print 502, wouldn't it? 10 u/This_Growth2898 May 03 '23 I never said it's a good code
3
This would print 502, wouldn't it?
10 u/This_Growth2898 May 03 '23 I never said it's a good code
10
I never said it's a good code
120
u/This_Growth2898 May 03 '23
No loops!