C if else techniques

code: