Various logic problems and fun projects in C