Answer :
Answer:
Following is given the solution of your question as required.
All the necessary descriptions are given in form of comments,
Sample output are also shown.
I hope it will help you!
Explanation:


Answer:
Following is given the solution of your question as required.
All the necessary descriptions are given in form of comments,
Sample output are also shown.
I hope it will help you!
Explanation: