Declare and define the functions outside of main and prior to main. Inside main, invoke the functions you defined.