Answer :
Answer:
See explaination.
Explanation:
An algorithm is specifically defined as the step by step method or process of achieving any type of result.
Please kindly see the attached file for the C algorithm that fulfils the answer of the given problem.
