Helter, that isn't even valid C code let alone a reasonable attempt at the solution. If you open a new C program in the code playground you would get a better starting point than that, and at least it would be valid code.
I can see from your profile that you have only completed 4% of the C course. You may find this a little beyond your current study level. If you are studying outside of SoloLearn then please show your attempt first and explain where you are having problems. SoloLearn is not a code writing service.