Added final program code with exe and output