The task is to write a code for a program in C language. The program description