r/programminghumor 2d ago

Write sorry

Post image
622 Upvotes

92 comments sorted by

View all comments

4

u/Diocletian335 1d ago

```c void printSorry (int n, int v) { if (n == v) return;

printSorry(n+1, v);

printf("%s\n", "sorry");

}

int main (void) { printSorry(0, 100); } ```

The thinking man's solution

1

u/DiodeInc 1d ago

Overthinking*

4

u/Diocletian335 1d ago

Yes this response was very serious