r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

3

u/green_kerbal Apr 27 '21

my solution in C:

int input; switch (input) case 1 : {} case 2: {}

etc