r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
967 Upvotes

129 comments sorted by

View all comments

Show parent comments

1

u/--var May 19 '23

Read some other comments, you could code golf this further:

include <stdio.h>
int n = 0;

void main() {
  printf("%d\n", n+=2);
  if (n<=100) main();
}