numbers program with user define function and structures