Help me in solving CPRACREARR3 problem

My issue

rearrange the code

Learning course: Practice C
Problem Link: Rearrange Code Practice Problem in C