Answer:
The output file is given below.
Step-by-step explanation:
Please visit gotit-pro.com to get complete working code.
6.2m questions
8.1m answers