some codes i've made while learning C at college for the first time