C program to complete the task in the attached file. -- 2

Job ID: 35067086

Budget: $10 – $30 USD

I need a C program (not C++) that solves the problem in the attached image.
Related categories: C Programming C++ Programming