Recent Question/Assignment

Can you help me to write it in C programming?